https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101765

--- Comment #2 from Kacper Słomiński <kacper.slominski72 at gmail dot com> ---
(In reply to Iain Sandoe from comment #1)
> I am not sure that a VLA can be used in a coroutine (neither can alloca, if
> I remember correctly) [so not sure that this is ICE on valid, it could be
> ICE on invalid]
> 
> Either way, we should not ICE from it.

Using alloca or __builtin_alloca inside of coroutines compiles fine, but
despite that I think this should be ICE-on-invalid, as I don't see how stack
allocations would work inside of coroutines, since AFAIK the coro frame size
must be known up-front.

Reply via email to