This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r166164 - in /trunk/gcc/cp: ChangeLog cp-tree.h...
- From: jason at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Tue, 02 Nov 2010 01:30:40 -0000
- Subject: r166164 - in /trunk/gcc/cp: ChangeLog cp-tree.h...
Author: jason
Date: Tue Nov 2 01:30:39 2010
New Revision: 166164
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=166164
Log:
* decl2.c (decl_constant_var_p): New fn.
(decl_maybe_constant_var_p): New fn.
(mark_used): Rework instantiation of things needed for constant
expressions.
* cp-tree.h: Declare new fns.
* pt.c (instantiate_decl): Handle cp_unevaluated_operand.
(always_instantiate_p): Use decl_maybe_constant_var_p.
(instantiate_decl): Don't defer constexpr functions.
* repo.c (repo_emit_p): Use decl_maybe_constant_var_p.
* semantics.c (finish_id_expression): Use decl_constant_var_p.
Check for valid name in constant expr after mark_used.
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/cp-tree.h
trunk/gcc/cp/decl2.c
trunk/gcc/cp/pt.c
trunk/gcc/cp/repo.c
trunk/gcc/cp/semantics.c