https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90303
--- Comment #5 from Jan Hubicka <hubicka at ucw dot cz> --- I see, i suppose we may lose some optimizations in early opts because of this but your patch is safe and I don't think the missed optimizations are very important (if they are we should avoid having structural equality on such types) Honza