https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97415
--- Comment #5 from Martin Liška <marxin at gcc dot gnu.org> --- (In reply to Jonathan Wakely from comment #4) > Fixed on trunk so far. I'm undecided whether it needs to be backported. > Although the comparison with null is formally unspecified, I think all the > compilers we support behave as expected. I wouldn't backport it as pointer-compare is quite experimental feature of the AddressSanitizer.