[Bug c++/63658] [4.9 Regression] Using class reference as template parameter causes compilation to fail
jason at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Jan 7 15:18:00 GMT 2015
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63658
--- Comment #5 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Wed Jan 7 15:17:59 2015
New Revision: 219305
URL: https://gcc.gnu.org/viewcvs?rev=219305&root=gcc&view=rev
Log:
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.
Added:
branches/gcc-4_9-branch/gcc/testsuite/g++.dg/template/ref9.C
Modified:
branches/gcc-4_9-branch/gcc/cp/ChangeLog
branches/gcc-4_9-branch/gcc/cp/mangle.c
branches/gcc-4_9-branch/gcc/cp/pt.c
More information about the Gcc-bugs
mailing list