[Bug c++/105885] [12/13 Regression] the address of 'template argument' will never be NULL warning

rguenth at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Jun 14 07:22:13 GMT 2022


--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> ---
We diagnose only after template substitution where we cannot distinguish
literal if (nullptr == nullptr) from if (ARG == nullptr) I think.

I guess reporters reasoning is that ARG is defaulted to nullptr and that's the
reason the diagnostic is unwanted?

More information about the Gcc-bugs mailing list