http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59468
Jan Hubicka <hubicka at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED Assignee|unassigned at gcc dot gnu.org |hubicka at gcc dot gnu.org --- Comment #4 from Jan Hubicka <hubicka at gcc dot gnu.org> --- We do very basic ODR check in ipa-devirt, perhaps we can extend it to handle this case, too. But as a fallback we should probably also stop ICEing when things progress to actual fold (I saw ICEs like this before but they all tracked down to bugs in devirtualization logic, this is first one that really come from misformed source code).