https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90333
--- Comment #14 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-9 branch has been updated by Jason Merrill <ja...@gcc.gnu.org>: https://gcc.gnu.org/g:74d34ca781cf94c8b4979c524dbbfbe95863678a commit r9-9254-g74d34ca781cf94c8b4979c524dbbfbe95863678a 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.