This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/5447: GCC/G++ 3.0.3 will segfault given the following file.
- From: rodrigc at gcc dot gnu dot org
- To: gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org, null_and_void at users dot sourceforge dot net
- Date: 22 Jan 2002 00:25:00 -0000
- Subject: Re: c++/5447: GCC/G++ 3.0.3 will segfault given the following file.
- Reply-to: rodrigc at gcc dot gnu dot org, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org, null_and_void at users dot sourceforge dot net, gcc-gnats at gcc dot gnu dot org
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