GNU bug report logs -
#72695
CC Mode 5.35.2 (C++//l); c++-mode misindents 'if constexpr' inside lambdas
Previous Next
Reported by: Arsen Arsenović <arsen <at> aarsen.me>
Date: Sun, 18 Aug 2024 09:52:02 UTC
Severity: normal
Done: Alan Mackenzie <acm <at> muc.de>
Bug is archived. No further changes may be made.
Full log
Message #17 received at 72695 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Hello, Alan,
Alan Mackenzie <acm <at> muc.de> writes:
> Hello, Arsen.
>
> A short progress report.
>
> On Wed, Aug 21, 2024 at 22:40:02 +0200, Arsen Arsenović wrote:
>> Hello Alan,
>
>> Alan Mackenzie <acm <at> muc.de> writes:
>> > Thanks for the bug report!
>
>> My pleasure. Thanks for being as fast as always.
>
> I apologise for not having been as fast over the last few days. Partly,
> I'm bringing up a new computer, which never goes as fast as one would
> like.
No worries, of course! Hope the setup went well.
> But mainly I'm struggling with the unfathomable complexity of C++ lambda
> functions, as documented on
> https://en.cppreference.com/w/cpp/language/lambda.
It should be quite simple - just a few optional productions preceded by
an introducer production (see https://eel.is/c++draft/expr.prim.lambda
for a formal grammar - this is the text from the standard draft).
> In my not so humble opinion, the C++ standards people have completely
> lost the plot.
Should help be necessary, I do work on G++ so I'm quite familiar with
the language. Feel free to ping me.
> The number of special cases in just the syntax, apparently just to
> save a few characters from a program's text, has got beyond the point
> where anybody can grasp it. Nobody in this group of people appears to
> be able to say "STOP!", though somebody sorely needs to. I dread to
> think what will be coming out in C++26. :-(
It really shouldn't be that bad - I'll help demystify if need be.
> Anyhow, I've spent all afternoon on the problem so far, and I think I can
> see my way to a solution. It will still take a few more days yet, I'm
> afraid.
Thank you very much! My apologies for the trouble.
Have a lovely day.
--
Arsen Arsenović
[signature.asc (application/pgp-signature, inline)]
This bug report was last modified 293 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.