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

--- Comment #9 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Fri Jun 30 22:20:22 2017
New Revision: 249857

URL: https://gcc.gnu.org/viewcvs?rev=249857&root=gcc&view=rev
Log:
        PR c++/54769 - wrong lookup of dependent template-name.

        PR c++/81257 - ICE with invalid ::template.
        * parser.c (cp_parser_template_name): Handle dependent object type.
        (cp_parser_nested_name_specifier_opt): Make template_keyword_p a
        parameter.
        (cp_parser_id_expression): Pass it.

Added:
    branches/gcc-7-branch/gcc/testsuite/g++.dg/parse/template-keyword1.C
    branches/gcc-7-branch/gcc/testsuite/g++.dg/template/lookup11.C
Modified:
    branches/gcc-7-branch/gcc/cp/ChangeLog
    branches/gcc-7-branch/gcc/cp/parser.c

Reply via email to