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, 31 Aug 2022 09:15:29 +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="10061"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 49787-done@debbugs.gnu.org, acm@muc.de To: Lars Ingebrigtsen , Daniel Colascione Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Aug 31 11:16:21 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 1oTJpc-0002Sb-Lc for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 31 Aug 2022 11:16:20 +0200 Original-Received: from localhost ([::1]:60790 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oTJpb-00058F-Ij for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 31 Aug 2022 05:16:19 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60894) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oTJpL-00055K-Iy for bug-gnu-emacs@gnu.org; Wed, 31 Aug 2022 05:16:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:48436) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oTJpK-0004NN-6d; Wed, 31 Aug 2022 05:16:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oTJpK-00061a-2b; Wed, 31 Aug 2022 05:16:02 -0400 Resent-From: Alan Mackenzie Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org, bug-cc-mode@gnu.org Resent-Date: Wed, 31 Aug 2022 09:16:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 49787 X-GNU-PR-Package: emacs,cc-mode X-GNU-PR-Keywords: confirmed Mail-Followup-To: 49787@debbugs.gnu.org, acm@muc.de, dancol@dancol.org Original-Received: via spool by 49787-done@debbugs.gnu.org id=D49787.166193734023122 (code D ref 49787); Wed, 31 Aug 2022 09:16:01 +0000 Original-Received: (at 49787-done) by debbugs.gnu.org; 31 Aug 2022 09:15:40 +0000 Original-Received: from localhost ([127.0.0.1]:38185 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oTJoy-00060s-KN for submit@debbugs.gnu.org; Wed, 31 Aug 2022 05:15:40 -0400 Original-Received: from mx3.muc.de ([193.149.48.5]:28252) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oTJow-00060e-0z for 49787-done@debbugs.gnu.org; Wed, 31 Aug 2022 05:15:39 -0400 Original-Received: (qmail 80478 invoked by uid 3782); 31 Aug 2022 11:15:30 +0200 Original-Received: from acm.muc.de (p4fe15a7c.dip0.t-ipconnect.de [79.225.90.124]) (using STARTTLS) by colin.muc.de (tmda-ofmipd) with ESMTP; Wed, 31 Aug 2022 11:15:30 +0200 Original-Received: (qmail 4847 invoked by uid 1000); 31 Aug 2022 09:15:29 -0000 Content-Disposition: inline In-Reply-To: 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:241172 Archived-At: Hello, everybody On Wed, Aug 24, 2022 at 19:35:40 +0000, Alan Mackenzie wrote: > 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? I'm now closing the bug, which has been fixed. -- Alan Mackenzie (Nuremberg, Germany).