This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug rtl-optimization/17723] [4.0.0 regression] [ICE on legal code] gcc segfaults with -O2


------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]