https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67503
Jonathan Wakely <redi at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|WONTFIX |INVALID --- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> --- (In reply to radventure from comment #3) > I can solve the alignment but prbolem will not be fixed. > I agree with remark about "non-trivial types" but this code works in > previous gcc versions and works in visual c++ 2015. It was never valid before and it's not valid now. Just because it appeared to work previously doesn't make it valid.