re PR c++/63658 (Using class reference as template parameter causes compilation to...
authorJason Merrill <jason@redhat.com>
Fri, 21 Nov 2014 00:47:50 +0000 (19:47 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Fri, 21 Nov 2014 00:47:50 +0000 (19:47 -0500)
commita663ce5a831198b5ef99cbc0b7205a2d9a37a574
treed1eea4dffcb9657dfe21b9a6e9b9509e2752f8c3
parente4c4792d37be8f7835dac75e929e7011ccba91fa
re PR c++/63658 (Using class reference as template parameter causes compilation to fail)

PR c++/63658
* pt.c (convert_nontype_argument): Call convert_from_reference.
(check_instantiated_arg): Don't be confused by reference refs.
(unify): Look through reference refs on the arg, too.
* mangle.c (write_template_arg): Look through reference refs.

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