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

--- Comment #3 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Author: mpolacek
Date: Wed Jan 23 17:25:42 2019
New Revision: 268192

URL: https://gcc.gnu.org/viewcvs?rev=268192&root=gcc&view=rev
Log:
        PR c++/88757 - qualified name treated wrongly as type.
        * parser.c (cp_parser_direct_declarator): don't treat qualified-ids
        in parameter-list as types if name lookup for declarator-id didn't
        find one or more function templates.

        * g++.dg/cpp0x/dependent2.c: new test.
        * g++.dg/cpp2a/typename10.c: remove dg-error.
        * g++.dg/cpp2a/typename12.c: new test.
        * g++.dg/template/static30.c: remove dg-error.

Added:
    trunk/gcc/testsuite/g++.dg/cpp0x/dependent2.C
    trunk/gcc/testsuite/g++.dg/cpp2a/typename12.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/parser.c
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/g++.dg/cpp2a/typename10.C
    trunk/gcc/testsuite/g++.dg/template/static30.C

Reply via email to