zero-as-null-pointer-constant C++ trunk

Jonathan Wakely jwakely.gcc@gmail.com
Wed May 22 14:25:00 GMT 2019


On Wed, 22 May 2019 at 15:12, Jonny Grant <jg@jguk.org> wrote:
>
> Hello
>
> This is a little test case. It is not real code.
>
> We used gcc-8 to get some warnings, but on the godbolt trunk gcc doesn't
> those warnings with this little test case. Am I missing something
> obvious? Is this an issue?
>
> with gcc-8 only (1) of the (3) occurrences of NULL is warned.

Why do you want a warning for use of NULL?

https://gcc.gnu.org/r260973 stopped GCC from giving that warning for
uses of NULL, because it's not a literal zero.



More information about the Gcc-help mailing list