From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Simon Schubert <2-gnu@0x2c.org> Newsgroups: gmane.emacs.bugs Subject: bug#52692: 27.2; wrong-type-argument in c-forward-decl-or-cast-1 Date: Mon, 20 Dec 2021 15:18:33 -0800 Message-ID: <963cd2d8-e0a9-66ea-49e4-b1821f940187@0x2c.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28138"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.4.0 To: 52692@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Dec 21 02:17:37 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mzTmb-00075W-Lr for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 21 Dec 2021 02:17:37 +0100 Original-Received: from localhost ([::1]:34516 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mzTmZ-0005uK-I1 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 20 Dec 2021 20:17:35 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:38730) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mzTm2-0005sF-PG for bug-gnu-emacs@gnu.org; Mon, 20 Dec 2021 20:17:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:40273) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mzTm2-0004eC-H2 for bug-gnu-emacs@gnu.org; Mon, 20 Dec 2021 20:17:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mzTm2-0004cT-Be for bug-gnu-emacs@gnu.org; Mon, 20 Dec 2021 20:17:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Simon Schubert <2-gnu@0x2c.org> Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 21 Dec 2021 01:17:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 52692 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.164004939217714 (code B ref -1); Tue, 21 Dec 2021 01:17:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 21 Dec 2021 01:16:32 +0000 Original-Received: from localhost ([127.0.0.1]:51819 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mzTlX-0004bd-R8 for submit@debbugs.gnu.org; Mon, 20 Dec 2021 20:16:32 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:51834) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <2-gnu@0x2c.org>) id 1mzRvZ-0001hl-7T for submit@debbugs.gnu.org; Mon, 20 Dec 2021 18:18:47 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:48810) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <2-gnu@0x2c.org>) id 1mzRvZ-0003kF-2Y for bug-gnu-emacs@gnu.org; Mon, 20 Dec 2021 18:18:45 -0500 Original-Received: from 0x2c.org ([78.46.174.244]:50974) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <2-gnu@0x2c.org>) id 1mzRvX-0002uI-0l for bug-gnu-emacs@gnu.org; Mon, 20 Dec 2021 18:18:44 -0500 Original-Received: from [10.1.10.136] (unknown [204.11.107.122]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (Client did not present a certificate) (Authenticated sender: 2) by 0x2c.org (Postfix) with ESMTPSA id 3B3CF3C416BE for ; Tue, 21 Dec 2021 00:18:36 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=0x2c.org; s=0x2c; t=1640042316; bh=xw2as66DjC0VMIIf/sH+Un+6apQZVESQ6pFXQ4OAuqo=; h=Date:To:Subject:From; b=dSdsEen6CVgFwpMzd+5utKZVT3r5yufHymaCukNY1EWNA3Zx1auU+1A1GbrVaMTM3 QaiboDDqcF1p4etDhm89QjovJSIxTU4VEVsdO0SjrjbTphmo6gG42p2wcMpti+yjvy x3oNAHScmoNv0WrSHwmcZuFXfPtdhk80WmJe92Q4= Content-Language: en-US-large Received-SPF: none client-ip=78.46.174.244; envelope-from=2-gnu@0x2c.org; helo=0x2c.org X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Mon, 20 Dec 2021 20:16:31 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:222825 Archived-At: Invoking c-context-line-break leads to wrong-type-argument if used with a custom type, but not when used with a struct. See example below: typedef struct some_type_struct {    int some_field; } some_type; void foo(some_type t) { } void test(void) {    foo((struct some_type_struct){ // fine: (c-context-line-break)    });    foo((some_type){ // error: (c-context-line-break)    }); } In GNU Emacs 27.2 (build 1, x86_64-pc-linux-gnu, X toolkit, Xaw scroll bars) of 2021-05-03 built on ernest Repository revision: 930a410a9b054a61e004db3e0d35f1ff9b5f4796 Repository branch: master Windowing system distributor 'The X.Org Foundation', version 11.0.12101001 System Description: Arch Linux Recent messages: Undo [2 times] 4 (#o4, #x4, ?\C-d) Undo Entering debugger... Quit user-error: No undo information in this buffer Quit Back to top level Saving file /home/corecode/tmp/test.c... Wrote /home/corecode/tmp/test.c Configured using: 'configure --prefix=/usr --sysconfdir=/etc --libexecdir=/usr/lib --localstatedir=/var --with-x-toolkit=lucid --with-xft --without-gconf --without-gsettings --with-modules '--program-transform-name=s/^ctags$/ctags.emacs/' 'CFLAGS=-march=x86-64 -mtune=generic -O2 -pipe -fno-plt -g -fdebug-prefix-map=/home/corecode/.cache/yay/emacs-lucid/src=/usr/src/debug' CPPFLAGS=-D_FORTIFY_SOURCE=2 LDFLAGS=-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now' Configured features: XPM JPEG TIFF GIF PNG RSVG SOUND GPM DBUS GLIB NOTIFY INOTIFY ACL GNUTLS LIBXML2 FREETYPE HARFBUZZ M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS LUCID X11 XDBE XIM MODULES THREADS LIBSYSTEMD JSON PDUMPER LCMS2 GMP Important settings: value of $LC_MONETARY: en_US.UTF-8 value of $LC_NUMERIC: en_US.UTF-8 value of $LC_TIME: en_GB.UTF-8 value of $LANG: en_DK.UTF-8 locale-coding-system: utf-8-unix Major mode: C/*l Minor modes in effect: tooltip-mode: t global-eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t abbrev-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message rmc puny dired dired-loaddefs format-spec rfc822 mml mml-sec password-cache epa derived epg epg-config gnus-util rmail rmail-loaddefs text-property-search time-date subr-x mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils cl-print debug backtrace find-func misearch multi-isearch cl-extra seq byte-opt gv bytecomp byte-compile cconv help-fns radix-tree help-mode vc-git diff-mode easy-mmode cc-mode cc-fonts easymenu cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs cl-loaddefs cl-lib tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame minibuffer cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads dbusbind inotify lcms2 dynamic-setting font-render-setting x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 78411 9583) (symbols 48 9636 1) (strings 32 26037 2235) (string-bytes 1 929397) (vectors 16 14770) (vector-slots 8 185362 12374) (floats 8 40 30) (intervals 56 682 8) (buffers 1000 15))