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]

c/5939: Segfault for array initialization



>Number:         5939
>Category:       c
>Synopsis:       Segfault for array initialization
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    unassigned
>State:          open
>Class:          ice-on-illegal-code
>Submitter-Id:   net
>Arrival-Date:   Wed Mar 13 10:06:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Daniel Kroening
>Release:        3.0.1
>Organization:
Carnegie Mellon University
>Environment:
System: Linux turing.modck.cs.cmu.edu 2.4.17 #1 SMP-BIGMEM+SMP-001 Thu Jan 31 05:34:15 EST 2002 i686 unknown
Architecture: i686
host: i686-pc-linux-gnu
build: i686-pc-linux-gnu
target: i686-pc-linux-gnu
configured with: ../gcc-3.0.1/configure --prefix=/usr/local/libexec/gcc-3.0.1
>Description:
Segmentation fault

test.c: In function `main':
test.c:5: warning: excess elements in array initializer
test.c:5: warning: (near initialization for ')
test.c:5: 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.

>How-To-Repeat:
gcc test.c -o test

test.c:

int main()
 {
  int a[0]={ 0 };
 }
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:


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