This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug rtl-optimization/17723] [4.0.0 regression] [ICE on legal code] gcc segfaults with -O2
- From: "bangerth at dealii dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 29 Sep 2004 16:33:21 -0000
- Subject: [Bug rtl-optimization/17723] [4.0.0 regression] [ICE on legal code] gcc segfaults with -O2
- References: <20040929130434.17723.martin@mpa-garching.mpg.de>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From bangerth at dealii dot org 2004-09-29 16:33 -------
Admittedly only marginally shorter:
---------------------------
struct { char c; } s;
int main () {
if (s.c) {
if (strcmp (&s.c, &"A"[0])) return 0;
}
else
if (strcmp (&s.c, &"B"[0])) return 0;
return 1;
}
-----------------------------
g/x> /home/bangerth/bin/gcc-4.0-pre/bin/gcc -O2 -c x.c
x.c: In function 'main':
x.c:10: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
W.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17723