diff options
author | Jakub Jelinek <jakub@redhat.com> | 2018-12-12 09:44:27 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2018-12-12 09:44:27 +0100 |
commit | 13de99bc7d085125e614ffdb75d486e9a7a8a48f (patch) | |
tree | b608cbd81f75cde8ce4f3264c08646a15e1fb0ba /libbacktrace/allocfail.c | |
parent | 66e30545db6ed4c1913e76d1085d0586ee6d055d (diff) | |
download | gcc-13de99bc7d085125e614ffdb75d486e9a7a8a48f.zip gcc-13de99bc7d085125e614ffdb75d486e9a7a8a48f.tar.gz gcc-13de99bc7d085125e614ffdb75d486e9a7a8a48f.tar.bz2 |
re PR c++/88446 (__builtin_is_constant_evaluated rejects some converted constant expressions.)
PR c++/88446
* cp-tree.h (maybe_constant_value): Add manifestly_const_eval
argument.
* constexpr.c (struct constexpr_call): Rename pretend_const_required
member to manifestly_const_eval.
(struct constexpr_ctx): Likewise.
(constexpr_call_hasher::equal): Adjust users.
(cxx_eval_builtin_function_call): Likewise. Formatting fix.
(cxx_eval_call_expression): Adjust users.
(cxx_eval_outermost_constant_expr, maybe_constant_init_1,
maybe_constant_init): Rename pretend_const_required argument to
manifestly_const_eval, adjust function comments.
(maybe_constant_value): Add manifestly_const_eval argument. If true,
don't cache and call cxx_eval_outermost_constant_expr with true as
manifestly_const_eval.
* decl.c (compute_array_index_type_loc): Call maybe_constant_value
with true as manifestly_const_eval.
* g++.dg/cpp2a/is-constant-evaluated3.C: New test.
From-SVN: r267047
Diffstat (limited to 'libbacktrace/allocfail.c')
0 files changed, 0 insertions, 0 deletions