diff options
author | Jakub Jelinek <jakub@redhat.com> | 2018-12-12 09:28:43 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2018-12-12 09:28:43 +0100 |
commit | cce3ae91f21f185756f604f529501810d8025f37 (patch) | |
tree | 2233210bda4863c89aa5f5033ebaf3d4d2dc63d1 /libstdc++-v3 | |
parent | 2f00fb3d0ba1174dee21c33162a5fdc4e583a061 (diff) | |
download | gcc-cce3ae91f21f185756f604f529501810d8025f37.tar.gz |
re PR c++/88449 (__builtin_is_constant_evaluated misbehaves due to constexpr call caching)
PR c++/88449
* constexpr.c (struct constexpr_call): Add pretend_const_required
member.
(constexpr_call_hasher::equal): Return false if pretend_const_required
members differ.
(cxx_eval_call_expression): Adjust new_call initialization. Hash in
ctx->pretend_const_required.
* g++.dg/cpp2a/is-constant-evaluated1.C: Change from dg-do compile
to dg-do run.
(e): Adjust comment with correct expected value.
(main): Expect e == 1.
* g++.dg/cpp2a/is-constant-evaluated2.C: New test.
From-SVN: r267044
Diffstat (limited to 'libstdc++-v3')
0 files changed, 0 insertions, 0 deletions