This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/63658] [4.9 Regression] Using class reference as template parameter causes compilation to fail
- From: "jason at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 07 Jan 2015 15:18:31 +0000
- Subject: [Bug c++/63658] [4.9 Regression] Using class reference as template parameter causes compilation to fail
- Auto-submitted: auto-generated
- References: <bug-63658-4 at http dot gcc dot gnu dot org/bugzilla/>
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