From unknown Tue Aug 12 08:31:47 2025 X-Loop: help-debbugs@gnu.org Subject: bug#52692: 27.2; wrong-type-argument in c-forward-decl-or-cast-1 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-GNU-PR-Keywords: To: 52692@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.164004939217714 (code B ref -1); Tue, 21 Dec 2021 01:17:02 +0000 Received: (at submit) by debbugs.gnu.org; 21 Dec 2021 01:16:32 +0000 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 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 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 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 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= Message-ID: <963cd2d8-e0a9-66ea-49e4-b1821f940187@0x2c.org> Date: Mon, 20 Dec 2021 15:18:33 -0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.4.0 Content-Language: en-US-large From: Simon Schubert <2-gnu@0x2c.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit 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-Spam-Score: -2.3 (--) 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 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) 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)) From unknown Tue Aug 12 08:31:47 2025 X-Loop: help-debbugs@gnu.org Subject: bug#52692: 27.2; wrong-type-argument in c-forward-decl-or-cast-1 Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 21 Dec 2021 11:21:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 52692 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Simon Schubert <2-gnu@0x2c.org> Cc: 52692@debbugs.gnu.org Received: via spool by 52692-submit@debbugs.gnu.org id=B52692.164008562115646 (code B ref 52692); Tue, 21 Dec 2021 11:21:02 +0000 Received: (at 52692) by debbugs.gnu.org; 21 Dec 2021 11:20:21 +0000 Received: from localhost ([127.0.0.1]:52555 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mzdBt-00044H-9b for submit@debbugs.gnu.org; Tue, 21 Dec 2021 06:20:21 -0500 Received: from quimby.gnus.org ([95.216.78.240]:36618) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mzdBo-00043t-8I for 52692@debbugs.gnu.org; Tue, 21 Dec 2021 06:20:19 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID :In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=nZaj/2Egq2ozqVOh0QTBY5XRfmyztsOLqYlegYZUBEY=; b=pEX7vL7bJDiMG46IAzckoRtXm6 zSw5jzef3sFQHsyXh2cOgkNRno2EOvS2/qdiQJYAom++TDdEFrMd/FV9a0c1fSwn46g3nTroDY0JF Xkapd1i4mITI+rbCykTEoyKT3B0UMUaJ5xCEXiGzCIluqdJYHYKwjROn/qtS0fYyDjZc=; Received: from [84.212.220.105] (helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mzdBf-0005hn-3I; Tue, 21 Dec 2021 12:20:09 +0100 From: Lars Ingebrigtsen References: <963cd2d8-e0a9-66ea-49e4-b1821f940187@0x2c.org> X-Now-Playing: Laurie Freelove's _Songs From The Nineline_: "I Don't Care Anymore" Date: Tue, 21 Dec 2021 12:20:03 +0100 In-Reply-To: <963cd2d8-e0a9-66ea-49e4-b1821f940187@0x2c.org> (Simon Schubert's message of "Mon, 20 Dec 2021 15:18:33 -0800") Message-ID: <87sfumgq70.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Simon Schubert <2-gnu@0x2c.org> writes: > 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 { > =?UTF-8?Q?=C2=A0=C2=A0?= int some_fie [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Simon Schubert <2-gnu@0x2c.org> writes: > 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 { > =C2=A0=C2=A0 int some_field; > } some_type; > > void foo(some_type t) { > } > > void test(void) { > =C2=A0=C2=A0 foo((struct some_type_struct){ // fine: (c-context-line-brea= k) > =C2=A0=C2=A0 }); > =C2=A0=C2=A0 foo((some_type){ // error: (c-context-line-break) > =C2=A0=C2=A0 }); > } > > In GNU Emacs 27.2 (build 1, x86_64-pc-linux-gnu, X toolkit, Xaw scroll > bars) I can reproduce this in Emacs 27.2, but not in Emacs 28, so it seems like this problem is fixed for the next Emacs release, and I'm therefore closing this bug report. --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Tue Dec 21 06:20:23 2021 Received: (at control) by debbugs.gnu.org; 21 Dec 2021 11:20:23 +0000 Received: from localhost ([127.0.0.1]:52558 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mzdBv-00044Z-Hn for submit@debbugs.gnu.org; Tue, 21 Dec 2021 06:20:23 -0500 Received: from quimby.gnus.org ([95.216.78.240]:36632) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mzdBu-000446-Ji for control@debbugs.gnu.org; Tue, 21 Dec 2021 06:20:22 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=hlsb7GfRksZnSXW6qZFsl2pTk914uRSUM/DuAXDBFBw=; b=DP4LakILwokcAQgbjgegI6inlH QdgQjYzylf7JComgnD2VbEiMGN9U2Q4Fmj/Ee8yeqgHLo/59M1aX1WvTLNmAHeNn75DoIpvNZfYIK XiKT65OCuWTrU2kyID1MRtrf4jX3aO6gux3w050Dai9xNTIU6N0BK/GmXFqIrZEUwYGE=; Received: from [84.212.220.105] (helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mzdBm-0005hy-QL for control@debbugs.gnu.org; Tue, 21 Dec 2021 12:20:16 +0100 Date: Tue, 21 Dec 2021 12:20:14 +0100 Message-Id: <87r1a6gq6p.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #52692 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: close 52692 28.1 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) close 52692 28.1 quit