re PR c++/92438 (Function declaration parsed incorrectly with `-std=c++1z`)
commitbecbae00641077f7104d16b4565c1d64df5fafc6
authorJakub Jelinek <jakub@redhat.com>
Fri, 14 Feb 2020 14:32:20 +0000 (14 15:32 +0100)
committerJakub Jelinek <jakub@redhat.com>
Fri, 14 Feb 2020 15:01:46 +0000 (14 16:01 +0100)
treee486a9b8c588f359aca3e2681b7a1ae3a0951f01
parent7d35cad11152895d239f103f1fffbd6f0cb58c8b
re PR c++/92438 (Function declaration parsed incorrectly with `-std=c++1z`)

PR c++/92438
* parser.c (cp_parser_constructor_declarator_p): If open paren
is followed by RID_ATTRIBUTE, skip over the attribute tokens and
try to parse type specifier.

* g++.dg/ext/attrib61.C: New test.
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/ext/attrib61.C [new file with mode: 0644]