This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: c/9903: [3.2 regression] ICE for legal code
- From: bangerth at dealii dot org
- To: andreas at andreas 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
- Date: 3 Mar 2003 15:13:29 -0000
- Subject: Re: c/9903: [3.2 regression] ICE for legal code
- Reply-to: bangerth at dealii dot org, andreas at andreas 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, gcc-gnats at gcc dot gnu dot org
Old Synopsis: ICE for legal code
New Synopsis: [3.2 regression] ICE for legal code
State-Changed-From-To: open->analyzed
State-Changed-By: bangerth
State-Changed-When: Mon Mar 3 15:13:28 2003
State-Changed-Why:
Confirmed with 3.2, but already fixed in 3.3 and mainline.
Here's a smaller example:
-----------------------------
typedef struct {
struct Y * dummy;
} X;
void f1(struct Y *A1);
void f2(double value);
struct Y y;
float foo(float A_r) {
f2(A_r);
f1(&y);
undeclared();
}
-------------------------
With 3.2.2 I get
/x> /home/bangerth/bin/gcc-3.2.2-pre/bin/gcc -c -O2 colors-preprocessed.c
colors-preprocessed.c: In function `foo':
colors-preprocessed.c:13: internal error: Segmentation fault
Please submit a full bug report,
It works with 3.0, so this is a regression. However, as
said, this is already fixed on newer branches.
W.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=9903