re PR c++/92438 (Function declaration parsed incorrectly with `-std=c++1z`)
authorJakub Jelinek <jakub@redhat.com>
Thu, 26 Dec 2019 10:16:01 +0000 (11:16 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 26 Dec 2019 10:16:01 +0000 (11:16 +0100)
commit7cd268ad6a6f71877744539d17ed53e752774bfa
tree3a55ec188547087fe3db9a81420da7db66097d60
parentae2bb2a6434d3177b94f78ac707f606ee65f0360
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.

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