extern bool require_potential_rvalue_constant_expression (tree);
extern tree cxx_constant_value (tree, tree = NULL_TREE,
tsubst_flags_t = tf_error);
+inline tree cxx_constant_value (tree t, tsubst_flags_t complain)
+{ return cxx_constant_value (t, NULL_TREE, complain); }
extern void cxx_constant_dtor (tree, tree);
extern tree cxx_constant_init (tree, tree = NULL_TREE);
extern tree maybe_constant_value (tree, tree = NULL_TREE, bool = false);
expr = build_converted_constant_bool_expr (expr, complain);
expr = instantiate_non_dependent_expr (expr, complain);
- expr = cxx_constant_value (expr, NULL_TREE, complain);
+ expr = cxx_constant_value (expr, complain);
return expr;
}
{
expr = build_converted_constant_bool_expr (expr, complain);
expr = instantiate_non_dependent_expr (expr, complain);
- expr = cxx_constant_value (expr, NULL_TREE, complain);
+ expr = cxx_constant_value (expr, complain);
}
if (TREE_CODE (expr) == INTEGER_CST)
{
else
{
hi = instantiate_non_dependent_expr (hi, complain);
- hi = cxx_constant_value (hi, NULL_TREE, complain);
+ hi = cxx_constant_value (hi, complain);
int len = valid_constant_size_p (hi) ? tree_to_shwi (hi) : -1;
/* Calculate the largest value of len that won't make the size of the vec
&& !glvalue_p (elt)
&& !TREE_CONSTANT (elt))
{
- elt = cxx_constant_value (elt, NULL_TREE, complain);
+ elt = cxx_constant_value (elt, complain);
if (elt == error_mark_node)
return false;
}
{
maybe_warn_for_constant_evaluated (cond, /*constexpr_if=*/true);
cond = instantiate_non_dependent_expr (cond);
- cond = cxx_constant_value (cond, NULL_TREE);
+ cond = cxx_constant_value (cond);
}
else
{