[Bug rtl-optimization/45621] [4.6 Regression] ICE: verify_cgraph_node failed: inlined_to pointer is set but no predecessors found with -fipa-cp-clone -flto

zsojka at seznam dot cz gcc-bugzilla@gcc.gnu.org
Thu Sep 9 19:36:00 GMT 2010



------- Comment #1 from zsojka at seznam dot cz  2010-09-09 19:35 -------
Created an attachment (id=21757)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=21757&action=view)
archive with reduced testcase

$ g++ -O2 -fipa-cp-clone -flto -nostdlib -r file1.cpp file2.cpp

----- file1.cpp -----
#include "header.h"

void
foo ()
{
  s.v1 ();
  s.m ();
}
---------------------
----- file2.cpp -----
#include "header.h"

void
S::v1 ()
{
  v2 ();
}

void
S::m ()
{
  v1 ();
}
---------------------
----- header.h -----
struct S
{
  void m ();
  virtual void v1 ();
  virtual void v2 ();
};

extern S s;
--------------------

I pressed "Commit" too early, so there is the rest:
Tested revisions:
r164077 - crash
r164096 - crash
r161659 - OK


-- 


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



More information about the Gcc-bugs mailing list