public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/17913] New: ICE jumping into statement expression
@ 2004-10-09 19:23 jsm28 at gcc dot gnu dot org
  2004-10-09 20:18 ` [Bug c/17913] [4.0 Regression] " pinskia at gcc dot gnu dot org
                   ` (22 more replies)
  0 siblings, 23 replies; 24+ messages in thread
From: jsm28 at gcc dot gnu dot org @ 2004-10-09 19:23 UTC (permalink / raw)
  To: gcc-bugs

The following code gives an ICE (no special compilation options needed):

void f(void) { 1 ? 1 : ({ a : 1; 1; }); goto a; }

t.c: In function 'f':
t.c:1: internal compiler error: virtual array label to block map[20]: element
4294967295 out of bounds in label_to_block, at /tree-cfg.c:622
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.

The ICE is a bug, which is a regression.  If this is to be permitted
then the real bug may be that we optimise the conditional expression
too early, though I think the proper fix is to reject jumping into
a constant expression (per bug 772) even if people have real code
that wants to jump *out* of them.

-- 
           Summary: ICE jumping into statement expression
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: jsm28 at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17913


^ permalink raw reply	[flat|nested] 24+ messages in thread

end of thread, other threads:[~2005-09-27 16:15 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-10-09 19:23 [Bug c/17913] New: ICE jumping into statement expression jsm28 at gcc dot gnu dot org
2004-10-09 20:18 ` [Bug c/17913] [4.0 Regression] " pinskia at gcc dot gnu dot org
2004-10-14  3:47 ` pinskia at gcc dot gnu dot org
2004-10-15 14:12 ` pinskia at gcc dot gnu dot org
2004-10-15 14:21 ` pinskia at gcc dot gnu dot org
2004-10-27 12:25 ` steven at gcc dot gnu dot org
2004-10-27 12:42 ` steven at gcc dot gnu dot org
2004-10-27 12:55 ` jsm at polyomino dot org dot uk
2004-10-28  6:42 ` loki at inf dot u-szeged dot hu
2004-10-28 13:30 ` bonzini at gcc dot gnu dot org
2004-10-28 15:05 ` jsm at polyomino dot org dot uk
2004-11-03  8:17 ` loki at inf dot u-szeged dot hu
2005-01-20  4:15 ` pinskia at gcc dot gnu dot org
2005-03-24 18:22 ` [Bug c/17913] [4.0/4.1 " mmitchel at gcc dot gnu dot org
2005-03-24 20:35 ` joseph at codesourcery dot com
2005-03-30 18:08 ` jsm28 at gcc dot gnu dot org
2005-03-30 19:56 ` cvs-commit at gcc dot gnu dot org
2005-03-30 19:59 ` cvs-commit at gcc dot gnu dot org
2005-04-17  3:51 ` mmitchel at gcc dot gnu dot org
2005-05-10 13:47 ` cvs-commit at gcc dot gnu dot org
2005-05-10 13:50 ` loki at gcc dot gnu dot org
2005-07-06 16:48 ` [Bug c/17913] [4.0 " mmitchel at gcc dot gnu dot org
2005-09-09 10:41 ` [Bug c++/17913] " rguenth at gcc dot gnu dot org
2005-09-27 16:15 ` mmitchel at gcc dot gnu dot org

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).