[Bug c++/58646] ICE on a multidimensional VLA with an empty initializer list

msebor at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Mar 30 22:31:00 GMT 2016


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

Martin Sebor <msebor at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|ICE on a multidimensional   |ICE on a multidimensional
                   |VLA with a constant bound   |VLA with an empty
                   |and empty initializer list  |initializer list

--- Comment #5 from Martin Sebor <msebor at gcc dot gnu.org> ---
Actually, the ICE can be triggered even by a multidimensional VLA with no
constant bounds, like this one:

void f (int n)
{
    int a [n][n] = {{}};
}


More information about the Gcc-bugs mailing list