aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/repo.c
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2010-11-01 21:30:39 -0400
committerJason Merrill <jason@gcc.gnu.org>2010-11-01 21:30:39 -0400
commitaef4a21519866e460d2baa161a402164af67547d (patch)
tree78573089ef14591417c470516d19451c94823b25 /gcc/cp/repo.c
parent7bf8ca763de168f22d2b65662a83e47b56d187e8 (diff)
downloadgcc-aef4a21519866e460d2baa161a402164af67547d.zip
gcc-aef4a21519866e460d2baa161a402164af67547d.tar.gz
gcc-aef4a21519866e460d2baa161a402164af67547d.tar.bz2
decl2.c (decl_constant_var_p): New fn.
* 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. From-SVN: r166164
Diffstat (limited to 'gcc/cp/repo.c')
-rw-r--r--gcc/cp/repo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cp/repo.c b/gcc/cp/repo.c
index 22d58af..357dcd9 100644
--- a/gcc/cp/repo.c
+++ b/gcc/cp/repo.c
@@ -319,7 +319,7 @@ repo_emit_p (tree decl)
available. Still record them into *.rpo files, so if they
weren't actually emitted and collect2 requests them, they can
be provided. */
- if (DECL_INTEGRAL_CONSTANT_VAR_P (decl)
+ if (decl_maybe_constant_var_p (decl)
&& DECL_CLASS_SCOPE_P (decl))
ret = 2;
}