https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90333

--- Comment #15 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jason Merrill <ja...@gcc.gnu.org>:

https://gcc.gnu.org/g:5d9d6c1cd8d9f0e057b4a7a849bc765e2109137c

commit r11-7430-g5d9d6c1cd8d9f0e057b4a7a849bc765e2109137c
Author: Jason Merrill <ja...@redhat.com>
Date:   Fri Feb 26 05:45:02 2021 -0500

    c++: Allow GNU attributes before lambda -> [PR90333]

    In my 9.3/10 patch for 90333 I allowed attributes between [] and (), and
    after the trailing return type, but not in the place that GCC 8 expected
    them, and we've gotten several bug reports about that.  So let's allow them
    there, as well.

    gcc/cp/ChangeLog:

            PR c++/90333
            * parser.c (cp_parser_lambda_declarator_opt): Accept GNU attributes
            between () and ->.

    gcc/testsuite/ChangeLog:

            PR c++/90333
            * g++.dg/ext/attr-lambda3.C: New test.

Reply via email to