This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/49808] GCC adds an address-of somewhere!


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49808

--- Comment #1 from Jason Merrill <jason at gcc dot gnu.org> 2011-07-29 07:10:25 UTC ---
Author: jason
Date: Fri Jul 29 07:10:21 2011
New Revision: 176916

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=176916
Log:
    PR c++/49808
    * pt.c (tsubst) [TEMPLATE_PARM_INDEX]: Call convert_from_reference.
    (convert_nontype_argument, tsubst_template_arg): Handle its output.

Added:
    trunk/gcc/testsuite/g++.dg/template/nontype24.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/pt.c
    trunk/gcc/testsuite/ChangeLog


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]