https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70526
Markus Trippelsdorf <trippels at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED CC| |trippels at gcc dot gnu.org Resolution|--- |INVALID --- Comment #1 from Markus Trippelsdorf <trippels at gcc dot gnu.org> --- -Wstrict-aliasing=2 warns: markus@x4 tmp % g++ -O2 -Wstrict-aliasing=2 test_fire.cpp test_fire.cpp: In instantiation of ‘const T* AlignedStorage2<T>::addr() const [with T = Register]’: test_fire.cpp:41:52: required from here test_fire.cpp:13:34: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] const T* addr() const { return reinterpret_cast<const T*>(u.mBytes); } -fno-strict-aliasing fixes the issue, thus invalid.