[Bug libstdc++/68276] New: ios_base::_M_grow_words should use new (std::nothrow)
redi at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Nov 10 15:52:00 GMT 2015
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68276
Bug ID: 68276
Summary: ios_base::_M_grow_words should use new (std::nothrow)
Product: gcc
Version: 5.2.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: libstdc++
Assignee: unassigned at gcc dot gnu.org
Reporter: redi at gcc dot gnu.org
Target Milestone: ---
To avoid aborting on allocation failure when the library is compiled with
-fno-exceptions, _M_grow_words should use nothrow new and check for null,
instead of catching std::bad_alloc.
More information about the Gcc-bugs
mailing list