GNU bug report logs - #69293
30.0.50; cc-mode doesn't support "if consteval"

Previous Next

Package: emacs;

Reported by: Herman, Géza <geza.herman <at> gmail.com>

Date: Tue, 20 Feb 2024 20:23:01 UTC

Severity: normal

Found in version 30.0.50

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: Eli Zaretskii <eliz <at> gnu.org>
To: Herman <at> debbugs.gnu.org, Géza <geza.herman <at> gmail.com>, Alan Mackenzie <acm <at> muc.de>
Cc: 69293 <at> debbugs.gnu.org
Subject: bug#69293: 30.0.50; cc-mode doesn't support "if consteval"
Date: Thu, 22 Feb 2024 15:18:28 +0200
> From: Herman <at> debbugs.gnu.org, Géza <geza.herman <at> gmail.com>
> Date: Tue, 20 Feb 2024 21:21:27 +0100
> 
> 
> C++ has a new feature, "if consteval". So one can write code like
> 
> if consteval {
>     // do something
> } else {
>     // do something else
> }
> 
> The problem is that cc-mode doesn't recognize this construct, lines
> are not indented correctly: the "// do something" and the "} else {"
> receive an additional level of indentation.

Alan, could you please look into this?




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

Previous Next


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