http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48953
Richard Guenther <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED AssignedTo|unassigned at gcc dot |rguenth at gcc dot gnu.org |gnu.org | --- Comment #2 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-05-11 09:41:45 UTC --- The rev. allowed inlining to happen. We end up with two copies of type S for some reason - inlining is supposed to copy variable-size types but probably does not adjust reference tree types to those copies. I'm not sure why this doesn't trigger without LTO (we inline during early inlining). I suppose the two types also exist w/o LTO but they are marked compatible via TYPE_CANONICAL which isn't re-set by copy_node. Thus, this is an issue with re-constructing TYPE_CANONICAL. Mine.