[Bug c++/29208] C++: Warn about unchecked use of pointers
sigra at home dot se
gcc-bugzilla@gcc.gnu.org
Sun Sep 24 23:57:00 GMT 2006
------- Comment #4 from sigra at home dot se 2006-09-24 23:57 -------
(In reply to comment #3)
> some functions require non zero pointers and those should crash instead of
> having null pointer checks on them. And using references is not always the
> answer as some functions need to be able to be used from C which does not
> have references.
Using references is almost always the answer. There are many projects that are
in pure C++ without any need to be compatible with C, and it would be helpful
for them to be able to enable such a warning.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29208
More information about the Gcc-bugs
mailing list