[Bug c/28592] New: Segmentation Fault running -O2 on file with deep nesting

2006-08-03 Thread rob at ennals dot org
Running GCC with -O2 enabled on the attached file causes a segmentation fault.
This file was reduced from a much bigger file using delta.

[EMAIL PROTECTED]:~/cvs/Ivy/deputytests/minim$ gcc --version
gcc (GCC) 4.0.3 (Ubuntu 4.0.3-1ubuntu5)
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

[EMAIL PROTECTED]:~/cvs/Ivy/deputytests/minim$ gcc -O2 t.c
t.c:29: warning: ‘struct envelope’ declared inside parameter list
t.c:29: warning: its scope is only this definition or declaration, which is
probably not what you want
t.c: In function ‘sendall’:
t.c:30: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See http://gcc.gnu.org/bugs.html> for instructions.
For Debian GNU/Linux specific bug reporting instructions,
see 


-- 
   Summary: Segmentation Fault running -O2 on file with deep nesting
   Product: gcc
   Version: 4.0.3
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: rob at ennals dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28592



[Bug c/28592] Segmentation Fault running -O2 on file with deep nesting

2006-08-03 Thread rob at ennals dot org


--- Comment #1 from rob at ennals dot org  2006-08-04 00:27 ---
Created an attachment (id=12012)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=12012&action=view)
Running gcc -O2 on this file gives a segfault.

Tested using gcc (GCC) 4.0.3 (Ubuntu 4.0.3-1ubuntu5), the standard GCC build
that comes with Ubuntu.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28592