http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48265
--- Comment #3 from Jason Merrill <jason at gcc dot gnu.org> 2011-03-30 02:16:44 UTC --- Author: jason Date: Wed Mar 30 02:16:37 2011 New Revision: 171715 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=171715 Log: PR c++/48265 * pt.c (value_dependent_expression_p) [VAR_DECL]: Make sure the variable is constant before looking at its initializer. Added: branches/gcc-4_6-branch/gcc/testsuite/g++.dg/cpp0x/regress/value-dep1.C Modified: branches/gcc-4_6-branch/gcc/cp/ChangeLog branches/gcc-4_6-branch/gcc/cp/pt.c branches/gcc-4_6-branch/gcc/testsuite/ChangeLog