[Bug c++/96278] three-way comparison operator comparison to 0: spurious nullptr warning

gumby@henkel-wallace.org gcc-bugzilla@gcc.gnu.org
Wed Jul 22 06:27:06 GMT 2020


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

--- Comment #2 from DV Henkel-Wallace <gumby@henkel-wallace.org> ---
(In reply to Andrew Pinski from comment #1)
> I think this is a dup of bug 95242.

Could be: I'm not sure if Jason's change applies only to synthesized
comparators or not (that was the case described in 95242 and was the second
case I mentioned).  I hope it is already fixed.

However the test case I submitted is the user-supplied 0 literal per the
standard the standard, not a synthetic case.  So might or might not be; I no
longer grok the gcc internals so can't tell myself.  Thanks -d


More information about the Gcc-bugs mailing list