https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86130
--- Comment #15 from Jonathan Wakely <redi at gcc dot gnu.org> --- (In reply to Jonathan Wakely from comment #13) > This is not an accident, it's a supported feature (and arguably documented, > by the code and the test). See also Bug 6518 which changed the segfault to setting failbit (and introduced a regression) and Bug 6750 which introduced the current behaviour.