Re: [PATCH] c++: ICE with GOTO_EXPR [PR118928]

2025-02-27 Thread Marek Polacek
On Thu, Feb 27, 2025 at 01:15:12PM -0500, Jason Merrill wrote: > On 2/20/25 9:51 AM, Marek Polacek wrote: > > Now with the test fixed. > > > > Bootstrapped/regtested on x86_64-pc-linux-gnu, ok for trunk? > > > > -- >8 -- > > In this PR we crash in cxx_eval_constant_expression/GOTO_EXPR on: > > >

Re: [PATCH] c++: ICE with GOTO_EXPR [PR118928]

2025-02-27 Thread Jason Merrill
On 2/20/25 9:51 AM, Marek Polacek wrote: Now with the test fixed. Bootstrapped/regtested on x86_64-pc-linux-gnu, ok for trunk? -- >8 -- In this PR we crash in cxx_eval_constant_expression/GOTO_EXPR on: gcc_assert (cxx_dialect >= cxx23); The code obviously doesn't expect to see a goto pre-C

Re: [PATCH] c++: ICE with GOTO_EXPR [PR118928]

2025-02-20 Thread Marek Polacek
Now with the test fixed. Bootstrapped/regtested on x86_64-pc-linux-gnu, ok for trunk? -- >8 -- In this PR we crash in cxx_eval_constant_expression/GOTO_EXPR on: gcc_assert (cxx_dialect >= cxx23); The code obviously doesn't expect to see a goto pre-C++23. But we can get here with the new prva

[PATCH] c++: ICE with GOTO_EXPR [PR118928]

2025-02-19 Thread Marek Polacek
Bootstrapped/regtested on x86_64-pc-linux-gnu, ok for trunk? -- >8 -- In this PR we crash in cxx_eval_constant_expression/GOTO_EXPR on: gcc_assert (cxx_dialect >= cxx23); The code obviously doesn't expect to see a goto pre-C++23. But we can get here with the new prvalue optimization. In this