PR c++/89640 - GNU attributes on lambda.
authorJason Merrill <jason@redhat.com>
Mon, 18 Mar 2019 19:34:47 +0000 (15:34 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Mon, 18 Mar 2019 19:34:47 +0000 (15:34 -0400)
commit6e3587dbbcefd4d4bdafaea0aa1cb8eb9495bd9c
tree6ed926243df5e5621e088845332013b1f1899a03
parent5a1d5d6a8edfc9cc08f4a15f70d9240470f05b0c
PR c++/89640 - GNU attributes on lambda.

My patch for PR 60503 to fix C++11 attribute parsing on lambdas accidentally
removed support for GNU attributes.

* parser.c (cp_parser_lambda_declarator_opt): Allow GNU attributes.

From-SVN: r269775
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/testsuite/g++.dg/ext/attr-lambda1.C [new file with mode: 0644]