------- Additional Comments From pinskia at gcc dot gnu dot org 2005-08-20 02:20 ------- In 4.0.0, we reject the code: t.cc: In function void f(int): t.cc:9: error: invalid use of array with unspecified bounds
On the mainline we ICE: t.cc: In function void f(int): t.cc:9: internal compiler error: in assign_stack_temp_for_type, at function.c:594 Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://gcc.gnu.org/bugs.html> for instructions. Both 4.0 and 4.1 were compiled with checking. Using built-in specs. Target: i686-pc-linux-gnu Configured with: /home/peshtigo/pinskia/src/gnu/gcc/src/configure --target=i686-pc-linux-gnu -- host=i686-pc-linux-gnu --enable-__cxa_atexit --enable-languages=c++,objc,java,f95 --prefix=/ home/gates/pinskia/linux --enable-threads=posix --enable-shared Thread model: posix gcc version 4.1.0 20050819 (experimental) Though without checking we don't get an ICE: t.cc: In function 'void f(int)': t.cc:9: error: invalid use of array with unspecified bounds t.cc:9: error: invalid use of array with unspecified bounds t.cc:9: error: invalid use of array with unspecified bounds t.cc:9: error: invalid use of array with unspecified bounds -- What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever Confirmed| |1 Keywords| |ice-checking, ice-on-valid- | |code Known to fail| |4.0.0 4.1.0 Known to work| |3.4.0 Last reconfirmed|0000-00-00 00:00:00 |2005-08-20 02:20:28 date| | Summary|new declarator with constant|[4.0/4.1 Regression] new |expression gives "error: |declarator with constant |invalid use of array with |expression gives "error: |unspecified bounds" |invalid use of array with | |unspecified bounds" Target Milestone|--- |4.0.2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23491