PR c++/77852 - class deduction from list-init
commit492ab670ad2c1ddc11c59bb77220c5a996b0f87a
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 5 Oct 2016 01:24:38 +0000 (5 01:24 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 5 Oct 2016 01:24:38 +0000 (5 01:24 +0000)
tree52c454f1c5de6d7762449bf5b461ac803afb4a43
parent78dc0da1b1e04b81a941d8d813bad271522a6e27
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@240765 138bc75d-0d04-0410-961f-82ee72b054a4
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]