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

--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> ---
--- a/libstdc++-v3/include/bits/ostream.tcc
+++ b/libstdc++-v3/include/bits/ostream.tcc
@@ -306,6 +306,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
     basic_ostream<_CharT, _Traits>&
     operator<<(basic_ostream<_CharT, _Traits>& __out, const char* __s)
     {
+      _GLIBCXX_DEBUG_PEDANTIC(__s != 0);
       if (!__s)
        __out.setstate(ios_base::badbit);
       else

Reply via email to