[Bug c++/48936] [4.3/4.4/4.5/4.6 Regression] sizeof template parm not considered constant expression

jason at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon May 9 18:19:00 GMT 2011


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

--- Comment #1 from Jason Merrill <jason at gcc dot gnu.org> 2011-05-09 18:00:29 UTC ---
Author: jason
Date: Mon May  9 18:00:26 2011
New Revision: 173584

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=173584
Log:
    PR c++/48936
    * decl2.c (mark_used): Instantiate constant variables even
    in unevaluated context.

Added:
    branches/gcc-4_5-branch/gcc/testsuite/g++.dg/template/nontype23.C
Modified:
    branches/gcc-4_5-branch/gcc/cp/ChangeLog
    branches/gcc-4_5-branch/gcc/cp/decl2.c
    branches/gcc-4_5-branch/gcc/testsuite/ChangeLog



More information about the Gcc-bugs mailing list