Re: [PATCH] c++: Fix ICE due to shared BLOCK node in coroutine generation [PR103328]

2022-04-01 Thread Jason Merrill via Gcc-patches
On 3/30/22 09:06, Benno Evers via Gcc-patches wrote: From: Benno Evers When finishing a function that is a coroutine, the function is transformed into a "ramp" function, and the original user-provided function body gets moved into a newly created "actor" function. In this case `current_functio

[PATCH] c++: Fix ICE due to shared BLOCK node in coroutine generation [PR103328]

2022-03-30 Thread Benno Evers via Gcc-patches
From: Benno Evers When finishing a function that is a coroutine, the function is transformed into a "ramp" function, and the original user-provided function body gets moved into a newly created "actor" function. In this case `current_function_decl` points to the ramp function, but `current_bindi