https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107238
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |INVALID Status|UNCONFIRMED |RESOLVED --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- https://gcc.gnu.org/onlinedocs/gcc-12.2.0/gcc/Arrays-and-pointers-implementation.html#Arrays-and-pointers-implementation > A cast from integer to pointer discards most-significant bits if the pointer > representation is smaller than the integer type, extends according to the > signedness of the integer type if the pointer representation is larger than > the integer type, otherwise the bits are unchanged.