public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c/6358: GCC 3.1 ICE on statement expressions
@ 2002-04-18 12:39 jakub
0 siblings, 0 replies; 3+ messages in thread
From: jakub @ 2002-04-18 12:39 UTC (permalink / raw)
To: gbeauchesne, gcc-bugs, gcc-prs, jakub, nobody, rth
Synopsis: GCC 3.1 ICE on statement expressions
State-Changed-From-To: analyzed->closed
State-Changed-By: jakub
State-Changed-When: Thu Apr 18 12:39:00 2002
State-Changed-Why:
Fixed.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=6358
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: c/6358: GCC 3.1 ICE on statement expressions
@ 2002-04-18 7:45 jakub
0 siblings, 0 replies; 3+ messages in thread
From: jakub @ 2002-04-18 7:45 UTC (permalink / raw)
To: gbeauchesne, gcc-bugs, gcc-prs, jakub, nobody, rth
Synopsis: GCC 3.1 ICE on statement expressions
State-Changed-From-To: open->analyzed
State-Changed-By: jakub
State-Changed-When: Thu Apr 18 07:45:44 2002
State-Changed-Why:
I don't think ice-on-legal-code is the right class,
at least ISO C99 forbids return without value in function
returning a value.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=6358
^ permalink raw reply [flat|nested] 3+ messages in thread
* c/6358: GCC 3.1 ICE on statement expressions
@ 2002-04-18 6:46 gbeauchesne
0 siblings, 0 replies; 3+ messages in thread
From: gbeauchesne @ 2002-04-18 6:46 UTC (permalink / raw)
To: gcc-gnats; +Cc: rth, jakub
>Number: 6358
>Category: c
>Synopsis: GCC 3.1 ICE on statement expressions
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: ice-on-legal-code
>Submitter-Id: net
>Arrival-Date: Thu Apr 18 06:46:08 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator: Gwenole Beauchesne
>Release: GNU C version 3.1 20020418 (prerelease) (i686-pc-linux-gnu)
>Organization:
>Environment:
i586-mandrake-linux-gnu
>Description:
gcc-3.1-branch ICEs on some statement expression returning void and enclosed in a function returning a value of floating type.
[gb@kernel gcc]$ ./cc1 ~/vrac/stmt_expr.c
f
/home/gb/vrac/stmt_expr.c: In function `f':
/home/gb/vrac/stmt_expr.c:7: Internal compiler error in subst_stack_regs_pat, at reg-stack.c:1441
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:
You can compile the following testcase with or without any optimazations. The testcase came up while distilling a similar ICE for ggv 1.99.3 (bonobo/ggv-postscript-view.c).
void g();
double f()
{
(void) ({ g(); return; });
return 0.0;
}
>Fix:
The ICE does not occur if either return; of the statement expression is omitted or the return value of f() is changed to some other scalar (non floating) type.
Besides, this is a regression from gcc-3.0.4.
BTW, as far as I can tell, the enclosed testcase succeeds with
GNU C version 3.1 20010617 (experimental) (i686-pc-linux-gnu)
but fails with:
GNU C version 3.1 20010715 (experimental) (i686-pc-linux-gnu)
>Release-Note:
>Audit-Trail:
>Unformatted:
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2002-04-18 19:39 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-04-18 12:39 c/6358: GCC 3.1 ICE on statement expressions jakub
-- strict thread matches above, loose matches on Subject: below --
2002-04-18 7:45 jakub
2002-04-18 6:46 gbeauchesne
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).