https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81429
--- Comment #8 from Marek Polacek <mpolacek at gcc dot gnu.org> --- Author: mpolacek Date: Wed Aug 7 17:32:12 2019 New Revision: 274181 URL: https://gcc.gnu.org/viewcvs?rev=274181&root=gcc&view=rev Log: PR c++/81429 - wrong parsing of constructor with C++11 attribute. * parser.c (cp_parser_constructor_declarator_p): Handle the scenario when a parameter declaration begins with [[attribute]]. * g++.dg/cpp0x/gen-attrs-68.C: New test. * g++.dg/cpp0x/gen-attrs-69.C: New test. Added: trunk/gcc/testsuite/g++.dg/cpp0x/gen-attrs-68.C trunk/gcc/testsuite/g++.dg/cpp0x/gen-attrs-69.C Modified: trunk/gcc/cp/ChangeLog trunk/gcc/cp/parser.c trunk/gcc/testsuite/ChangeLog