------- Comment #3 from reichelt at gcc dot gnu dot org 2006-10-08 20:29 ------- Shorter testcase (the array doesn't have to be static):
========================= void foo(int i) { int x[][i] = { 0 }; } ========================= The bug appeared with GCC 3.3. -- reichelt at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |reichelt at gcc dot gnu dot | |org Keywords| |monitored Known to fail|3.3.5 3.4.4 4.0.1 4.1.0 |3.3 3.4.6 4.0.3 4.1.1 4.2.0 |4.2.0 | Known to work|2.95 |2.95 3.0.4 3.2.3 Summary|[4.0/4.1/4.2 regression] ICE|[4.0/4.1/4.2 regression] ICE |on invalid: C++ static |on invalid C++ variable |variable length array |length array Target Milestone|4.2.0 |4.0.4 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29175