https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90572

--- Comment #3 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Author: mpolacek
Date: Sat May 25 14:39:12 2019
New Revision: 271619

URL: https://gcc.gnu.org/viewcvs?rev=271619&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:
    trunk/gcc/testsuite/g++.dg/cpp2a/typename16.C
    trunk/gcc/testsuite/g++.dg/parse/friend13.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/parser.c
    trunk/gcc/testsuite/ChangeLog

Reply via email to