c/8647: ICE in GNU99 mode Nr. #2

bkausbk@web.de bkausbk@web.de
Tue Nov 19 13:33:00 GMT 2002


>Number:         8647
>Category:       c
>Synopsis:       ICE in GNU99 mode Nr. #2
>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:02 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Benjamin Kalytta
>Release:        gcc version 3.3 20021109 (experimental)
>Organization:
>Environment:
x86-cygwin Windows 2000 Prof. (AMD Athlon XP 2200+)
>Description:
An Internal compiler error will be generated on illegal code:

unsigned int m(int *i) {
	if
	*i=0;
}

generated error message:

test.c: In function `m':
test.c:6: error: parse error before '*' token
test.c:7: 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(int *i) {
	if
	*i=0;
}



More information about the Gcc-bugs mailing list