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

Previous Next

Packages: emacs, cc-mode;

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.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 49787 in the body.
You can then email your comments to 49787 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#49787; Package emacs. (Fri, 30 Jul 2021 23:39:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Daniel Colascione <dancol <at> dancol.org>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Fri, 30 Jul 2021 23:39:01 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

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.





Information forwarded to bug-gnu-emacs <at> gnu.org, bug-cc-mode <at> gnu.org:
bug#49787; Package emacs,cc-mode. (Mon, 22 Aug 2022 10:33:02 GMT) Full text and rfc822 format available.

Message #8 received at 49787 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Daniel Colascione <dancol <at> dancol.org>
Cc: 49787 <at> debbugs.gnu.org, Alan Mackenzie <acm <at> muc.de>
Subject: Re: bug#49787: noexcept on destructor confuses cc-mode
Date: Mon, 22 Aug 2022 12:32:04 +0200
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.

I can confirm that this behaviour is still present in Emacs 29.  Adding
Alan to the CCs.




Added tag(s) confirmed. Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Mon, 22 Aug 2022 10:33:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org, bug-cc-mode <at> gnu.org:
bug#49787; Package emacs,cc-mode. (Wed, 24 Aug 2022 19:36:02 GMT) Full text and rfc822 format available.

Message #13 received at 49787 <at> debbugs.gnu.org (full text, mbox):

From: Alan Mackenzie <acm <at> muc.de>
To: Lars Ingebrigtsen <larsi <at> gnus.org>, Daniel Colascione <dancol <at> dancol.org>
Cc: 49787 <at> debbugs.gnu.org
Subject: Re: bug#49787: noexcept on destructor confuses cc-mode
Date: Wed, 24 Aug 2022 19:35:40 +0000
Hello, Daniel and Lars.

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?

-- 
Alan Mackenzie (Nuremberg, Germany).




Reply sent to Alan Mackenzie <acm <at> muc.de>:
You have taken responsibility. (Wed, 31 Aug 2022 09:16:01 GMT) Full text and rfc822 format available.

Notification sent to Daniel Colascione <dancol <at> dancol.org>:
bug acknowledged by developer. (Wed, 31 Aug 2022 09:16:02 GMT) Full text and rfc822 format available.

Message #18 received at 49787-done <at> debbugs.gnu.org (full text, mbox):

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).




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Wed, 28 Sep 2022 11:24:09 GMT) Full text and rfc822 format available.

This bug report was last modified 1 year and 211 days ago.

Previous Next


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