This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug tree-optimization/45580] [4.6 Regression] Building WebKit fails with compiler catching SIGSEGV in gimple_fold_obj_type_ref_known_binfo()



------- Comment #4 from jamborm at gcc dot gnu dot org  2010-09-17 18:21 -------
The problem is a big one.  In short, placement new operator changes
the type of an object to another, which re-sets up the VMT. Then there
is call of a virtual method of the latter type.  CCP however happily
propagates the initial declaration (of a type with no virtual methods)
to the OBJ_TYPE_REF and attempts to fold it.  The folding function
naturally expect to see some virtual methods in BINFOs but there are
none and we dereference a NULL pointer.


-- 


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]