https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90572
--- Comment #4 from Marek Polacek <mpolacek at gcc dot gnu.org> --- 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