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

             Bug #: 51590
           Summary: [4.7 Regression] ICE in gsi_for_stmt, at
                    gimple-iterator.c:560
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: middle-end
        AssignedTo: unassig...@gcc.gnu.org
        ReportedBy: bur...@gcc.gnu.org
              Host: x86_64-unknown-linux-gnu


With 4.7.0 20111216 I get an ICE:

$ g++ -c -O3 test-it-25.ii 
test-it-25.ii: In member function 'void v8::internal::RelocIterator::next()':
test-it-25.ii:41:14: internal compiler error: in gsi_for_stmt, at
gimple-iterator.c:560

But not with "-m32", "-O2" nor with GCC 4.6.2.

The failing assert is:

/* Finds iterator for STMT.  */

gimple_stmt_iterator
gsi_for_stmt (gimple stmt)
{
  ...
  gcc_unreachable ();
}

Reply via email to