[Bug tree-optimization/16542] New: [lno] ICE with computed gotos

reichelt at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Wed Jul 14 16:45:00 GMT 2004


The lno-branch crashes on the following code snippet compiled
with -O2 (C or C++ frontend):

===================================
void foo(void *p)
{
    void* a[] = { &&l0, &&l1 };

    l0: goto *p;
    l1: goto *p;
}
===================================

The error message is:

bug.c: In function `foo':
bug.c:2: internal compiler error: in tree_split_edge, at tree-cfg.c:3098
Please submit a full bug report, [etc.]

This causes a bootstrap failure in libjava.

-- 
           Summary: [lno] ICE with computed gotos
           Product: gcc
           Version: lno
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P2
         Component: tree-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: reichelt at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org


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



More information about the Gcc-bugs mailing list