https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122986
Xi Ruoyao <xry111 at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |xry111 at gcc dot gnu.org
See Also| |https://gcc.gnu.org/bugzill
| |a/show_bug.cgi?id=113151
--- Comment #4 from Xi Ruoyao <xry111 at gcc dot gnu.org> ---
(In reply to Karl Robillard from comment #3)
> So there is no aliasing violation warning? Saying the value is
> uninitialized is a bit of a red herring. And having it not be emitted
> regardless of optimization level is even more confusing.
-Wstrict-aliasing=1 will warn but it's stupid enough to provide many false
positives, thus it's not enabled by default, nor -Wall.