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 <URL:http://gcc.gnu.org/bugs.html> for instructions.
For Debian GNU/Linux specific bug reporting instructions,
see <URL:file:///usr/share/doc/gcc-4.0/README.Bugs>


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

Reply via email to