[Bug c++/49896] undefined reference to static const integral member whose address is not used, for some values of the constant
jason at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Oct 11 18:19:00 GMT 2011
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
More information about the Gcc-bugs
mailing list