[Bug libstdc++/101937] error: variable-sized object may not be initialized

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Aug 16 13:26:38 GMT 2021


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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jakub at gcc dot gnu.org

--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
VLAs are an extension in C++, so there is no standard that says whether they
can or can't be initialized.  C99 says they can't, but that doesn't mean they
can't be in C++...


More information about the Gcc-bugs mailing list