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

Arsen Arsenović <arsen at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
     Ever confirmed|0                           |1
   Last reconfirmed|                            |2024-07-15
             Status|UNCONFIRMED                 |NEW
                 CC|                            |arsen at gcc dot gnu.org

--- Comment #1 from Arsen Arsenović <arsen at gcc dot gnu.org> ---
current precedent in other toolchains:

- MSVC: rejects alloca entirely in coroutines
- clang: permits alloca in coroutines in many cases.  by my crude testing, it
seems to only fail if the size is dynamic and the use of the allocated region
goes over a suspension point.  this makes sense, but I'm unsure how involved of
a change it is

for now, best to mark it a 'sorry', as we do with VLAs, rather than produce
bugprone code

Reply via email to