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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|ICE on incorrect code with  |ICE on incorrect code with
                   |VLA                         |VLA type inside a local
                   |                            |struct type
           Keywords|ice-on-invalid-code         |ice-on-valid-code

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
It did not crash in GCC 4.5.3 but there was multiple calls to foo.

Note I used this code instead (removing C++11ism from it):
int foo();

int main() {
  typedef int X[foo()];
  struct S { S() { X x; } } s;
}

Reply via email to