[Bug tree-optimization/84470] test for address of member being null not eliminated

glisse at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Feb 19 20:48:00 GMT 2018


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84470

--- Comment #1 from Marc Glisse <glisse at gcc dot gnu.org> ---
I can't see the difference between the 2 cases?

clang gives for both:
warning: comparison of array 'p->a' equal to a null pointer is always false
[-Wtautological-pointer-compare]


More information about the Gcc-bugs mailing list