r245826 - in /trunk/gcc: cp/ChangeLog cp/init.c...
jason@gcc.gnu.org
jason@gcc.gnu.org
Thu Mar 2 01:58:00 GMT 2017
Author: jason
Date: Thu Mar 2 01:58:30 2017
New Revision: 245826
URL: https://gcc.gnu.org/viewcvs?rev=245826&root=gcc&view=rev
Log:
Class template argument deduction in new-expression
* init.c (build_new): Handle deduction from no initializer.
* parser.c (cp_parser_new_expression): Don't require a single
expression for class template deduction.
* typeck2.c (cxx_incomplete_type_diagnostic): Fix diagnostic for
class template placeholder.
* pt.c (tsubst_copy) [TEMPLATE_DECL]: Handle dependent context.
(tsubst_copy_and_build) [TEMPLATE_ID_EXPR]: Handle SCOPE_REF.
(redeclare_class_template): Set TEMPLATE_TYPE_PARM_FOR_CLASS.
Added:
trunk/gcc/testsuite/g++.dg/cpp1z/class-deduction33.C
trunk/gcc/testsuite/g++.dg/cpp1z/class-deduction34.C
trunk/gcc/testsuite/g++.dg/cpp1z/class-deduction35.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/init.c
trunk/gcc/cp/parser.c
trunk/gcc/cp/pt.c
trunk/gcc/cp/typeck2.c
More information about the Gcc-cvs
mailing list