Re: [C++ PATCH] Fix up constexpr TARGET_EXPR evaluation if there are cleanups (PR c++/91369)

2019-12-03 Thread Jason Merrill
On 12/3/19 3:42 AM, Jakub Jelinek wrote: Hi! The following testcase shows that during constexpr evaluation we didn't handle TARGET_EXPR_CLEANUP at all (which was probably fine when there weren't constexpr dtors). My understanding is that TARGET_EXPR cleanups should be queued and evaluated only

[C++ PATCH] Fix up constexpr TARGET_EXPR evaluation if there are cleanups (PR c++/91369)

2019-12-03 Thread Jakub Jelinek
Hi! The following testcase shows that during constexpr evaluation we didn't handle TARGET_EXPR_CLEANUP at all (which was probably fine when there weren't constexpr dtors). My understanding is that TARGET_EXPR cleanups should be queued and evaluated only at the end of CLEANUP_POINT_EXPR, so that i