[Bug tree-optimization/95663] static_cast checks for null even when the pointer is dereferenced
redi at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Jun 15 10:09:19 GMT 2020
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95663
--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Or to be more clear:
struct Large {
char pad[1024*1024];
int x;
};
Large* p = 0;
int i = p->x;
More information about the Gcc-bugs
mailing list