This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r171715 - in /branches/gcc-4_6-branch/gcc: cp/C...
- From: jason at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Wed, 30 Mar 2011 02:16:38 -0000
- Subject: r171715 - in /branches/gcc-4_6-branch/gcc: cp/C...
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