This is the mail archive of the gcc-cvs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

r249614 - in /trunk/gcc: cp/ChangeLog cp/cp-tre...


Author: jason
Date: Fri Jun 23 23:29:51 2017
New Revision: 249614

URL: https://gcc.gnu.org/viewcvs?rev=249614&root=gcc&view=rev
Log:
	PR c++/79056 - C++17 ICE with invalid template syntax.

	* parser.c (cp_parser_simple_type_specifier): Don't assume that type
	is a TYPE_DECL.
	(cp_parser_check_for_invalid_template_id): Handle TYPE_DECL.
	* pt.c (template_placeholder_p): New.
	* cp-tree.h: Declare it.

Added:
    trunk/gcc/testsuite/g++.dg/parse/template28.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/cp-tree.h
    trunk/gcc/cp/parser.c
    trunk/gcc/cp/pt.c


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]