https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111319
Xi Ruoyao <xry111 at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |INVALID CC| |xry111 at gcc dot gnu.org Status|UNCONFIRMED |RESOLVED --- Comment #3 from Xi Ruoyao <xry111 at gcc dot gnu.org> --- Please try not to create more reports with "not sure if there is UB" esp. this UB should be obvious, and it's also detectable with -fsanitize=undefined: t.c:13:7: runtime error: load of address 0x7ffd53183020 with insufficient space for an object of type 'int' 0x7ffd53183020: note: pointer points here 2a 56 00 00 01 00 00 00 00 00 00 00 00 14 1a ed ca 50 d4 0e 00 00 00 00 00 00 00 00 98 31 18 53 ^