bug#72695: CC Mode 5.35.2 (C++//l); c++-mode misindents 'if constexpr' inside lambdas

Arsen Arsenović via CC-Mode-help <[email protected]> Thu, 26 Sep 2024 22:14:28 +0200
Newsgroups gmane.emacs.cc-mode.general
Message-ID <[email protected]>
--===============4011183745204773113==
Content-Type: multipart/signed; boundary="=-=-=";
 micalg=pgp-sha512; protocol="application/pgp-signature"

--=-=-=
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

Hi Alan,

Alan Mackenzie <[email protected]> writes:

> Sorry to keep going on about this, but ....
>
>> I think so, through the 2nd lambda-expression derivation:
>
> I'm interpreting this as being the answer to "Is that first .... alignas
> correct?", not a comment on my second sentence "My reading of ...., not
> before it.".  If I'm mistaken there, then my next paragraph is without
> effect, and I apologise.

Ah!  Please forgive me, I misread the standard.

>>   lambda-introducer < template-parameter-list > requires-clause_opt
>>     attribute-specifier-seq_opt lambda-declarator compound-statement
>
>> ... where attribute-specifier-seq is:
>
>>   attribute-specifier-seq_opt attribute-specifier
>
>> ... and attribute-specifier is also possibly alignment-specifier.
>
>> Maybe I am missing something, though?
>
> ..... My reading of that lambda-expression derivation is that the "alignas
> (128)" is the atribute-specifier-seq_opt, and the "requires
> some_concept<T>" is the requires-clause_opt.  Surely the first of these,
> the "alignas" needs to come after the second, the "requires"?
>
> Phew!

Yes!  You're completely right, I accidentally "combined" the two cases
of lambda-expression while writing that example.  Forgive me.

(serves me right for bug-reporting late.. ;-) )

> [ .... ]
>
>> > Even it the patch is good, I'm not quite ready to commit it yet, since=
 I
>> > need to amend the test suite somewhat.
>
>> I will test it at a later time tonight or tomorrow.  Sorry for the
>> delay.
>
> I got your other post where you reported on that the tests you did were
> satisfactory.  Thanks for that!
>
> I'm hoping to get the patch committed before the weekend.

Yay!  :-)

Thank you very much!

Have a lovely night.
=2D-=20
Arsen Arsenovi=C4=87

--=-=-=
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iOYEARYKAI4WIQT+4rPRE/wAoxYtYGFSwpQwHqLEkwUCZvXApF8UgAAAAAAuAChp
c3N1ZXItZnByQG5vdGF0aW9ucy5vcGVucGdwLmZpZnRoaG9yc2VtYW4ubmV0RkVF
MkIzRDExM0ZDMDBBMzE2MkQ2MDYxNTJDMjk0MzAxRUEyQzQ5MxAcYXJzZW5AYWFy
c2VuLm1lAAoJEFLClDAeosSTvuYBAI3FldSQd8fDGywafMBrXHAzlRa87Rv1WUku
T0A/DyenAQDDlgjJBPiKWmnOIj+N8bF0X5RYzVUqLpQspd8ogjyJAQ==
=M7St
-----END PGP SIGNATURE-----
--=-=-=--




--===============4011183745204773113==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline


--===============4011183745204773113==--