Bug 7068 - [3.2 regression] ICE with incomplete types
Summary: [3.2 regression] ICE with incomplete types
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: debug (show other bugs)
Version: 3.2
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords: ice-on-invalid-code
Depends on:
Blocks:
 
Reported: 2002-06-18 08:56 UTC by Rainer Orth
Modified: 2003-07-25 17:33 UTC (History)
3 users (show)

See Also:
Host: alpha-dec-osf5.1
Target: alpha-dec-osf5.1
Build: alpha-dec-osf5.1
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rainer Orth 2002-06-18 08:56:11 UTC
During a bootstrap, cc1 crashed on the equivalent of the following code:

struct itimerspec {
        struct timespec it_interval;
        struct timespec it_value;
};

% ./xgcc -B./ -g -v crash.i 
Reading specs from ./specs
Configured with: /vol/gnu/src/gcc/gcc/configure --prefix=/vol/gcc --with-local-prefix=/vol/gcc --disable-nls alpha-dec-osf5.1
Thread model: single
gcc version 3.2 20020617 (experimental)
 ./cc1 -fpreprocessed crash.i -quiet -dumpbase crash.i -g -version -o /tmp//ccOO1w7z.s
GNU C version 3.2 20020617 (experimental) (alpha-dec-osf5.1)
        compiled by GNU C version 3.1.
crash.i:2: error: field `it_interval' has incomplete type
crash.i:3: error: field `it_value' has incomplete type
crash.i:4: internal compiler error: internal error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.

The problem only happens with -g.  gcc 3.1 is ok as well, so this is a
regression.

Release:
3.2 20020617 (experimental)

Environment:
System: OSF1 bartok V5.1 732 alpha
Machine: alpha
	
host: alpha-dec-osf5.1
build: alpha-dec-osf5.1
target: alpha-dec-osf5.1
configured with: /vol/gnu/src/gcc/gcc/configure --prefix=/vol/gcc --with-local-prefix=/vol/gcc --disable-nls alpha-dec-osf5.1

How-To-Repeat:
Compile the code above.
Comment 1 Eric Botcazou 2003-02-22 21:22:04 UTC
State-Changed-From-To: open->analyzed
State-Changed-Why: Confirmed on 3.2 branch. 3.3 and mainline are not affected.
Comment 2 Joe Buck 2003-04-25 20:22:06 UTC
State-Changed-From-To: analyzed->closed
State-Changed-Why: Fixed for 3.3.