[Bug c++/92438] [8/9/10 Regression] Function declaration parsed incorrectly with `-std=c++1z`
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Dec 26 10:16:00 GMT 2019
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92438
--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Thu Dec 26 10:16:01 2019
New Revision: 279736
URL: https://gcc.gnu.org/viewcvs?rev=279736&root=gcc&view=rev
Log:
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.
Added:
trunk/gcc/testsuite/g++.dg/ext/attrib61.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/parser.c
trunk/gcc/testsuite/ChangeLog
More information about the Gcc-bugs
mailing list