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++/49896] undefined reference to static const integral member whose address is not used, for some values of the constant


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

--- Comment #10 from Jason Merrill <jason at gcc dot gnu.org> 2011-10-11 18:18:35 UTC ---
Author: jason
Date: Tue Oct 11 18:18:25 2011
New Revision: 179815

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=179815
Log:
    PR c++/49855
    PR c++/49896
    * call.c (perform_implicit_conversion_flags): Do perform
    scalar conversions in templates.
    * pt.c (tsubst_copy, tsubst_copy_and_build): Handle CONVERT_EXPR.

Added:
    branches/gcc-4_6-branch/gcc/testsuite/g++.dg/template/constant1.C
    branches/gcc-4_6-branch/gcc/testsuite/g++.dg/template/constant2.C
Modified:
    branches/gcc-4_6-branch/gcc/cp/ChangeLog
    branches/gcc-4_6-branch/gcc/cp/call.c
    branches/gcc-4_6-branch/gcc/cp/pt.c
    branches/gcc-4_6-branch/gcc/testsuite/ChangeLog


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