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

Reply via email to