r242018 - in /trunk/gcc: cp/ChangeLog cp/decl.c...

jason@gcc.gnu.org jason@gcc.gnu.org
Wed Nov 9 20:02:00 GMT 2016


Author: jason
Date: Wed Nov  9 20:02:56 2016
New Revision: 242018

URL: https://gcc.gnu.org/viewcvs?rev=242018&root=gcc&view=rev
Log:
	Fix C++17 template placeholder for template template parm.

	* parser.c (cp_parser_simple_type_specifier): Allow placeholder
	for template template parameter.
	(cp_parser_type_id_1): Improve diagnostic.
	* decl.c (grokdeclarator): Handle class deduction diagnostics here.
	* pt.c (splice_late_return_type): Not here.
	(tsubst) [TEMPLATE_TYPE_PARM]: Substitute into placeholder template.
	(do_class_deduction): Handle non-class templates.

Added:
    trunk/gcc/testsuite/g++.dg/cpp1z/class-deduction21.C
    trunk/gcc/testsuite/g++.dg/cpp1z/class-deduction22.C
    trunk/gcc/testsuite/g++.dg/cpp1z/class-deduction23.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/decl.c
    trunk/gcc/cp/parser.c
    trunk/gcc/cp/pt.c
    trunk/gcc/testsuite/g++.dg/cpp0x/variadic-ex1.C
    trunk/gcc/testsuite/g++.old-deja/g++.pt/ttp10.C



More information about the Gcc-cvs mailing list