This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r249857 - in /branches/gcc-7-branch/gcc: cp/Cha...
- From: jason at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Fri, 30 Jun 2017 22:20:22 -0000
- Subject: r249857 - in /branches/gcc-7-branch/gcc: cp/Cha...
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