GNU bug report logs - #49787
noexcept on destructor confuses cc-mode

Previous Next

Packages: cc-mode, emacs;

Reported by: Daniel Colascione <dancol <at> dancol.org>

Date: Fri, 30 Jul 2021 23:39:01 UTC

Severity: normal

Tags: confirmed

Done: Alan Mackenzie <acm <at> muc.de>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Daniel Colascione <dancol <at> dancol.org>
Subject: bug#49787: closed (Re: bug#49787: noexcept on destructor confuses
 cc-mode)
Date: Wed, 31 Aug 2022 09:16:02 +0000
[Message part 1 (text/plain, inline)]
Your bug report

#49787: noexcept on destructor confuses cc-mode

which was filed against the emacs,cc-mode package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to 49787 <at> debbugs.gnu.org.

-- 
49787: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=49787
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Alan Mackenzie <acm <at> muc.de>
To: Lars Ingebrigtsen <larsi <at> gnus.org>, Daniel Colascione <dancol <at> dancol.org>
Cc: 49787-done <at> debbugs.gnu.org, acm <at> muc.de
Subject: Re: bug#49787: noexcept on destructor confuses cc-mode
Date: Wed, 31 Aug 2022 09:15:29 +0000
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 <dancol <at> dancol.org> 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).

[Message part 3 (message/rfc822, inline)]
From: Daniel Colascione <dancol <at> dancol.org>
To: bug-gnu-emacs <at> gnu.org
Subject: noexcept on destructor confuses cc-mode
Date: Fri, 30 Jul 2021 16:38:39 -0700
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.




This bug report was last modified 2 years and 327 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.