US 20 - forwarding references and class template argument deduction
commitfb14a9478f61ea29986befcc4130d32c0dae5c7d
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 20 Jan 2017 04:43:19 +0000 (20 04:43 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 20 Jan 2017 04:43:19 +0000 (20 04:43 +0000)
treec680dd849d5d50b23e638fa82ee29cef46a5a8c5
parentd5d551c7aedeea0b5e48cc793542cbd94abc72bd
US 20 - forwarding references and class template argument deduction

* cp-tree.h (TEMPLATE_TYPE_PARM_FOR_CLASS): New.
* pt.c (push_template_decl_real): Set it.
(maybe_adjust_types_for_deduction): Check it.
(rewrite_template_parm): Copy it.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@244682 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/cp-tree.h
gcc/cp/pt.c
gcc/testsuite/g++.dg/cpp1z/class-deduction26.C [new file with mode: 0644]