------- Comment #2 from bangerth at dealii dot org 2006-09-28 05:59 ------- Confirmed. This actually worked in gcc2.95 to my surprise:
g/x> /home/bangerth/bin/gcc-2.95.3/bin/c++ -c x.cc x.cc: In function `void foo()': x.cc:1: variable-sized object of type `const char *[((c - 1) + 1)]' may not be initialized x.cc:1: storage size of `a' isn't constant All later gcc versions ICE, however. W. -- bangerth at dealii dot org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |bangerth at dealii dot org Status|UNCONFIRMED |NEW Ever Confirmed|0 |1 Known to fail| |3.3.5 3.4.4 4.0.1 4.1.0 | |4.2.0 Known to work| |2.95 Last reconfirmed|0000-00-00 00:00:00 |2006-09-28 05:59:32 date| | Summary|ICE on invalid: C++ static |[4.0/4.1/4.2 regression] ICE |variable length array |on invalid: C++ static | |variable length array Target Milestone|--- |4.2.0 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29175