[Bug c++/86177] Wnull-dereference warning for object file compile missing

redi at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sat Jun 16 23:10:00 GMT 2018


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

--- Comment #5 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Why add it there and not to every other warning option that depends on
interprocedural analysis and inlining?

If the dereference and the null pointer are in separate files, then of course
the compiler can't warn. That's just how C++ works.


More information about the Gcc-bugs mailing list