PR c++/77852 - class deduction from list-init
authorJason Merrill <jason@redhat.com>
Wed, 5 Oct 2016 01:24:38 +0000 (21:24 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Wed, 5 Oct 2016 01:24:38 +0000 (21:24 -0400)
commitf1644724b57aa559f71a22402b3eeb776be106e5
tree52c454f1c5de6d7762449bf5b461ac803afb4a43
parent1c84b79889a10503e5adf0e78d0509a88ca08868
PR c++/77852 - class deduction from list-init

* pt.c (do_class_deduction): Handle list-initialization.
(do_auto_deduction): Call it sooner.
(build_deduction_guide): Use tsubst_arg_types.
(rewrite_template_parm): Don't copy_type.

From-SVN: r240765
gcc/c-family/ChangeLog
gcc/c-family/c-common.c
gcc/c-family/c-common.h
gcc/cp/ChangeLog
gcc/cp/pt.c
gcc/testsuite/g++.dg/cpp1z/class-deduction14.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp1z/class-deduction15.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp1z/class-deduction16.C [new file with mode: 0644]