US 20 - forwarding references and class template argument deduction
authorJason Merrill <jason@redhat.com>
Fri, 20 Jan 2017 04:43:19 +0000 (23:43 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Fri, 20 Jan 2017 04:43:19 +0000 (23:43 -0500)
commitb2c06d053009d53be0d9b307e0ca02975c9ffbb6
treec680dd849d5d50b23e638fa82ee29cef46a5a8c5
parent689f867c9c8668f864520372562f8e1b3ca7137c
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.

From-SVN: r244682
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]