Re: [PATCH] c++, v2: Don't defer local statics initialized with constant expressions [PR108702]

2023-03-03 Thread Jason Merrill via Gcc-patches
On 3/3/23 10:18, Jakub Jelinek wrote: On Thu, Mar 02, 2023 at 11:48:04AM -0500, Jason Merrill wrote: The stmtexpr19.C testcase used to be rejected as it has a static variable in statement expression in constexpr context, but as that static variable is initialized by constant expression, when

[PATCH] c++, v2: Don't defer local statics initialized with constant expressions [PR108702]

2023-03-03 Thread Jakub Jelinek via Gcc-patches
On Thu, Mar 02, 2023 at 11:48:04AM -0500, Jason Merrill wrote: > > The stmtexpr19.C testcase used to be rejected as it has a static > > variable in statement expression in constexpr context, but as that > > static variable is initialized by constant expression, when P2647R1 > > was implemented we