r271620 - in /branches/gcc-9-branch/gcc: cp/Cha...
mpolacek@gcc.gnu.org
mpolacek@gcc.gnu.org
Sat May 25 14:46:00 GMT 2019
Author: mpolacek
Date: Sat May 25 14:46:15 2019
New Revision: 271620
URL: https://gcc.gnu.org/viewcvs?rev=271620&root=gcc&view=rev
Log:
PR c++/90572 - wrong disambiguation in friend declaration.
* parser.c (cp_parser_constructor_declarator_p): Don't allow missing
typename for friend declarations.
* g++.dg/cpp2a/typename16.C: New test.
* g++.dg/parse/friend13.C: New test.
Added:
branches/gcc-9-branch/gcc/testsuite/g++.dg/cpp2a/typename16.C
branches/gcc-9-branch/gcc/testsuite/g++.dg/parse/friend13.C
Modified:
branches/gcc-9-branch/gcc/cp/ChangeLog
branches/gcc-9-branch/gcc/cp/parser.c
More information about the Gcc-cvs
mailing list