public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* c/9163: ICE in genrtl_compound_stmt at c-semantics.c:776 with c99 mode
@ 2003-01-03 23:06 ehrhardt
  0 siblings, 0 replies; only message in thread
From: ehrhardt @ 2003-01-03 23:06 UTC (permalink / raw)
  To: gcc-gnats


>Number:         9163
>Category:       c
>Synopsis:       ICE in genrtl_compound_stmt at c-semantics.c:776 with c99 mode
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          ice-on-illegal-code
>Submitter-Id:   net
>Arrival-Date:   Fri Jan 03 15:06:00 PST 2003
>Closed-Date:
>Last-Modified:
>Originator:     Christian Ehrhardt
>Release:        3.2.2,3.3,3.4
>Organization:
>Environment:
Tested with 3.2.2, 3.3 and 3.4 on sparc-sun-solaris and with very recent
3.4 on x86-linux.
>Description:

The following code snippet ICEs with 3.2.2, 3.3 and 3.4, 3.2-release
issued an error, i.e. this is a regression. Compile with -std=c99!

void f ()
{
	for (; int ; );
}

The ICE doesn't happen in c89 mode and is probably related to
c99 blocks because this produces the same ICE:

void foo ()
{
        while (int i);
}

ehrhardt@huon:~ > ~/gcc/install/bin/gcc -std=c99 var2.c
var2.c: In function `foo':
var2.c:3: error: parse error before "int"
var2.c:4: internal compiler error: in genrtl_compound_stmt, at c-semantics.c:726
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:
See above.
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-01-03 23:06 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-01-03 23:06 c/9163: ICE in genrtl_compound_stmt at c-semantics.c:776 with c99 mode ehrhardt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).