c++/5447: GCC/G++ 3.0.3 will segfault given the following file.
rodrigc@gcc.gnu.org
rodrigc@gcc.gnu.org
Mon Jan 21 16:25:00 GMT 2002
Synopsis: GCC/G++ 3.0.3 will segfault given the following file.
State-Changed-From-To: open->analyzed
State-Changed-By: rodrigc
State-Changed-When: Mon Jan 21 16:25:00 2002
State-Changed-Why:
segfault reproduced with gcc 3.0.3.
With gcc 3.1 in CVS, no segfault, but the following compilation error, when compiled with g++:
seg3.cpp:2: multidimensional array must have bounds for all dimensions except
the first
seg3.cpp:8: declaration of `arr' as multidimensional array must have bounds for
all dimensions except the first
Putting it in a seg3.c file and compiling with gcc -pedantic
yields warnings:
seg3.c:2: warning: array type has incomplete element type
seg3.c:8: warning: array type has incomplete element type
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=5447
More information about the Gcc-bugs
mailing list