diff options
author | Jason Merrill <jason@redhat.com> | 2020-01-08 15:31:20 -0500 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 2020-01-08 15:31:20 -0500 |
commit | 10d2f801f472931137deae1714d5b690c1862037 (patch) | |
tree | f13bc24987acc7188124e8414df9cc31ed103b00 /gcc/vec.c | |
parent | cd3ca6cb1129b1e80b5b048a59aa3a0c387c2413 (diff) | |
download | gcc-10d2f801f472931137deae1714d5b690c1862037.zip gcc-10d2f801f472931137deae1714d5b690c1862037.tar.gz gcc-10d2f801f472931137deae1714d5b690c1862037.tar.bz2 |
PR c++/91369 - constexpr destructor and member initializer.
Previously it didn't matter whether we looked through a TARGET_EXPR in
constexpr evaluation, but now that we have constexpr destructors it does.
On IRC I mentioned the idea of clearing TARGET_EXPR_CLEANUP in
digest_nsdmi_init, but since this initialization is expressed by an
INIT_EXPR, it's better to handle all INIT_EXPR, not just those for a member
initializer.
* constexpr.c (cxx_eval_store_expression): Look through TARGET_EXPR
when not preevaluating.
From-SVN: r280018
Diffstat (limited to 'gcc/vec.c')
0 files changed, 0 insertions, 0 deletions