PR c++/81429 - wrong parsing of constructor with C++11 attribute.
authorMarek Polacek <polacek@redhat.com>
Wed, 7 Aug 2019 17:32:12 +0000 (17:32 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Wed, 7 Aug 2019 17:32:12 +0000 (17:32 +0000)
commit842901d0ca0baa25ea510089a21162a6e8ae8f29
tree5a8afe56299429972de78b7dcff8b844ddb47e4c
parentc822ac7daa0d0c920bbb87cdba847fed6331ba73
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.

From-SVN: r274181
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/gen-attrs-68.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp0x/gen-attrs-69.C [new file with mode: 0644]