https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97415
--- Comment #7 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Jonathan Wakely <r...@gcc.gnu.org>: https://gcc.gnu.org/g:ced70ebaa372945ec8d73703d81e4a10d6d51c9b commit r11-4887-gced70ebaa372945ec8d73703d81e4a10d6d51c9b Author: Jonathan Wakely <jwak...@redhat.com> Date: Tue Nov 10 15:46:02 2020 +0000 libstdc++: Fix more unspecified comparisons to null pointer [PR 97415] This adds some more null checks to avoid a relational comparison with a null pointer, similar to 78198b6021a9695054dab039340202170b88423c. libstdc++-v3/ChangeLog: PR libstdc++/97415 * include/std/sstream (basic_stringbuf::_M_update_egptr) (basic_stringbuf::__xfer_bufptrs::__xfer_bufptrs): Check for null before comparing pointers.