]> git.ipfire.org Git - thirdparty/gcc.git/commit
* decl2.c (decl_constant_var_p): New fn.
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 2 Nov 2010 01:30:39 +0000 (01:30 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 2 Nov 2010 01:30:39 +0000 (01:30 +0000)
commitd58b8a94df1930b85c8bf4b2ad3f51eb0532df2c
tree78573089ef14591417c470516d19451c94823b25
parent07a4521a130b5c6577dc62d176c0fa07be31ea24
* 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@166164 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/cp-tree.h
gcc/cp/decl2.c
gcc/cp/pt.c
gcc/cp/repo.c
gcc/cp/semantics.c