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

--- Comment #7 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Oops, if I'd typed PEDASSERT not PEDANTIC, it would be a deliberate choice ;-)

Yes, I think PEDASSERT fits better, based on the documented meaning of it
(which even mentions the std::string((const char*)nullptr) case):
https://gcc.gnu.org/onlinedocs/libstdc++/manual/debug_mode_semantics.html

Reply via email to