[Bug libstdc++/90682] std::terminate() will happily call a null terminate handler

redi at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu May 30 19:17:00 GMT 2019


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

--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> ---
It doesn't seem appropriate to me.

If we don't want to support it we could just add __attribute__((__nonnull__))
to std::set_terminate, but I think we should support it (and so don't want it
to produce any warnings).


More information about the Gcc-bugs mailing list