From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.bugs Subject: bug#49787: noexcept on destructor confuses cc-mode Date: Wed, 24 Aug 2022 19:35:40 +0000 Message-ID: References: <3cfd5de8-598f-b2c0-9f53-28e2ba433ffa@dancol.org> <87pmgsa7rv.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29265"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 49787@debbugs.gnu.org To: Lars Ingebrigtsen , Daniel Colascione Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Aug 24 21:36:13 2022 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 1oQwAe-0007Q5-Fh for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 24 Aug 2022 21:36:12 +0200 Original-Received: from localhost ([::1]:40654 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oQwAd-0005pe-Fi for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 24 Aug 2022 15:36:11 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52814) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oQwAW-0005oE-3f for bug-gnu-emacs@gnu.org; Wed, 24 Aug 2022 15:36:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:58528) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oQwAU-0006jy-L7; Wed, 24 Aug 2022 15:36:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oQwAU-000708-EC; Wed, 24 Aug 2022 15:36:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Alan Mackenzie Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, bug-cc-mode@gnu.org Resent-Date: Wed, 24 Aug 2022 19:36:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49787 X-GNU-PR-Package: emacs,cc-mode X-GNU-PR-Keywords: confirmed Original-Received: via spool by 49787-submit@debbugs.gnu.org id=B49787.166136975426897 (code B ref 49787); Wed, 24 Aug 2022 19:36:02 +0000 Original-Received: (at 49787) by debbugs.gnu.org; 24 Aug 2022 19:35:54 +0000 Original-Received: from localhost ([127.0.0.1]:48277 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oQwAM-0006zl-1c for submit@debbugs.gnu.org; Wed, 24 Aug 2022 15:35:54 -0400 Original-Received: from colin.muc.de ([193.149.48.1]:44110 helo=mail.muc.de) by debbugs.gnu.org with smtp (Exim 4.84_2) (envelope-from ) id 1oQwAG-0006zS-Ac for 49787@debbugs.gnu.org; Wed, 24 Aug 2022 15:35:52 -0400 Original-Received: (qmail 19800 invoked by uid 3782); 24 Aug 2022 19:35:41 -0000 Original-Received: from acm.muc.de (p4fe15720.dip0.t-ipconnect.de [79.225.87.32]) (using STARTTLS) by colin.muc.de (tmda-ofmipd) with ESMTP; Wed, 24 Aug 2022 21:35:40 +0200 Original-Received: (qmail 26198 invoked by uid 1000); 24 Aug 2022 19:35:40 -0000 Content-Disposition: inline In-Reply-To: <87pmgsa7rv.fsf@gnus.org> X-Submission-Agent: TMDA/1.3.x (Ph3nix) X-Primary-Address: acm@muc.de 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:240659 Archived-At: Hello, Daniel and Lars. On Mon, Aug 22, 2022 at 12:32:04 +0200, Lars Ingebrigtsen wrote: > Daniel Colascione writes: > > This is valid C++ code. > > struct Foo { > >   ~Foo() noexcept; > > }; > > Adding the "noexcept" on the destructor causes cc-mode not to > > recognize "~Foo" as a destructor. Yes. > I can confirm that this behaviour is still present in Emacs 29. Adding > Alan to the CCs. I committed a fix to the master branch. Would either of you like to test the fix before I close the bug? -- Alan Mackenzie (Nuremberg, Germany).