https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88487
--- Comment #5 from rguenther at suse dot de <rguenther at suse dot de> --- On Fri, 14 Dec 2018, bugzi...@poradnik-webmastera.com wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88487 > > --- Comment #4 from Daniel Fruzynski <bugzi...@poradnik-webmastera.com> --- > OK, I see. Is there any workaround for this? Only not using a union ... > I tried to assign pointer to local > variable directly and with intermediate casting via void*, but it did not > help. > Casting S1* to S2* also does not work. Yes, that doesn't work by design.