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

msebor at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Feb 27 16:09:00 GMT 2018


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

--- Comment #4 from Martin Sebor <msebor at gcc dot gnu.org> ---
When p is null p->a is not valid if it's evaluated.  offsetof (along with
sizeof and alignof and the like) don't evaluate their operands so they are
exempt.


More information about the Gcc-bugs mailing list