c/8646: ICE in GNU99 mode
bkausbk@web.de
bkausbk@web.de
Tue Nov 19 13:29:00 GMT 2002
>Number: 8646
>Category: c
>Synopsis: ICE in GNU99 mode
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: ice-on-illegal-code
>Submitter-Id: net
>Arrival-Date: Tue Nov 19 13:26:01 PST 2002
>Closed-Date:
>Last-Modified:
>Originator: Benjamin Kalytta
>Release: gcc version 3.3 20021109 (experimental)
>Organization:
>Environment:
x86 - cygwin Windows 2000 prof. (Athlon xp 2200+)
>Description:
Compiling folowing will generate an ICE:
for (it i=0; i<4096; i++){
}
generated error output:
test.c:2: error: `it' undeclared (first use in this function)
test.c:2: error: (Each undeclared identifier is reported only once
test.c:2: error: for each function it appears in.)
test.c:2: error: parse error before "i"
test.c:2: error: `i' undeclared (first use in this function)
test.c:2: error: parse error before ')' token
test.c:4: internal compiler error: in genrtl_compound_stmt, at c-semantics.c:705
>How-To-Repeat:
gcc -Wp,-std=gnu99 test.c
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: text/plain; name="test.c"
Content-Disposition: inline; filename="test.c"
unsigned int m() {
for (it i=0; i<4096; i++){
}
}
More information about the Gcc-bugs
mailing list