public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/17657] New: ICE in expand_case
@ 2004-09-24 16:19 jakub at gcc dot gnu dot org
  2004-09-24 16:22 ` [Bug c++/17657] " arjanv at redhat dot com
                   ` (13 more replies)
  0 siblings, 14 replies; 15+ messages in thread
From: jakub at gcc dot gnu dot org @ 2004-09-24 16:19 UTC (permalink / raw)
  To: gcc-bugs

// { dg-do compile }
// { dg-options "-O2" }

extern int foo (int);

void
bar (void)
{
  char tmp = foo (0);
  switch (tmp)
    {
    case 1: foo (1); break;
    case 2: foo (2); break;
    case 3: foo (3); break;
    case 4: foo (4); break;
    case 5: foo (5); break;
    case 6: foo (6); break;
    case 7: foo (7); break;
    case 255: foo (8); break;
    default: break;
    }
}

ICEs at -O2 while it works with GCC 3.4.2.  The ICE is in expand_case which
calls tree_low_cst on !host_integerp () INTEGER_CST.
In C this generates warning, but compiles it without ICEing.

-- 
           Summary: ICE in expand_case
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: jakub at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org
GCC target triplet: x86_64-redhat-linux


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


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

end of thread, other threads:[~2004-10-11 17:02 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-09-24 16:19 [Bug c++/17657] New: ICE in expand_case jakub at gcc dot gnu dot org
2004-09-24 16:22 ` [Bug c++/17657] " arjanv at redhat dot com
2004-09-24 17:19 ` [Bug middle-end/17657] " pinskia at gcc dot gnu dot org
2004-09-24 17:28 ` [Bug middle-end/17657] [4.0 Regression] " pinskia at gcc dot gnu dot org
2004-10-04  4:07 ` pinskia at gcc dot gnu dot org
2004-10-04  4:15 ` pinskia at gcc dot gnu dot org
2004-10-04  8:43 ` steven at gcc dot gnu dot org
2004-10-06 13:12 ` pinskia at gcc dot gnu dot org
2004-10-06 13:24 ` stevenb at suse dot de
2004-10-06 13:26 ` pinskia at gcc dot gnu dot org
2004-10-09 18:22 ` pinskia at gcc dot gnu dot org
2004-10-11  3:42 ` cvs-commit at gcc dot gnu dot org
2004-10-11  3:42 ` pinskia at gcc dot gnu dot org
2004-10-11 16:11 ` cvs-commit at gcc dot gnu dot org
2004-10-11 17:02 ` pinskia 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).