This is the mail archive of the gcc-cvs@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]

r170532 - in /trunk/gcc: cp/ChangeLog cp/semant...


Author: jason
Date: Sun Feb 27 08:13:16 2011
New Revision: 170532

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=170532
Log:
	PR c++/47897
	* semantics.c (non_const_var_error): Split out from...
	(cxx_eval_constant_expression): ...here.
	(potential_constant_expression_1) [VAR_DECL]: Use it.
	Allow dependent variables.

Added:
    trunk/gcc/testsuite/g++.dg/cpp0x/regress/template-const1.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/semantics.c
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/g++.dg/cpp0x/regress/debug-debug7.C
    trunk/gcc/testsuite/g++.dg/cpp0x/regress/template-function1.C
    trunk/gcc/testsuite/g++.dg/debug/debug7.C
    trunk/gcc/testsuite/g++.dg/template/function1.C


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