[Bug c++/122360] Initialized variable is reported as uninitialized when reading through a reinterpret_cast-ed pointer
pinskia at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Oct 21 07:37:10 GMT 2025
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122360
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |DUPLICATE
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
>-Wno-strict-aliasing
:)
This code is undefined since you are violating C/C++ aliasing rules. The
warning is a dup though, PR 99768.
*** This bug has been marked as a duplicate of bug 99768 ***
More information about the Gcc-bugs
mailing list