re PR c++/49808 (GCC adds an address-of somewhere!)
authorJason Merrill <jason@redhat.com>
Fri, 29 Jul 2011 07:10:21 +0000 (03:10 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Fri, 29 Jul 2011 07:10:21 +0000 (03:10 -0400)
commit17b3c7a2dbccfb4dcb7d78e0c974a0ad212262a9
tree0c7f40afebdcb16dd3bc1da94958d723f3244a58
parent7d7d50baf7dbd0d5cb6c16951007726b8cc7f66d
re PR c++/49808 (GCC adds an address-of somewhere!)

PR c++/49808
* pt.c (tsubst) [TEMPLATE_PARM_INDEX]: Call convert_from_reference.
(convert_nontype_argument, tsubst_template_arg): Handle its output.

From-SVN: r176916
gcc/cp/ChangeLog
gcc/cp/pt.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/template/nontype24.C [new file with mode: 0644]