]> git.ipfire.org Git - thirdparty/gcc.git/commit
libstdc++: Fix std::basic_stracktrace to not assume allocators throw std::bad_alloc
authorJonathan Wakely <jwakely@redhat.com>
Tue, 24 Sep 2024 11:44:09 +0000 (12:44 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Thu, 26 Sep 2024 11:38:40 +0000 (12:38 +0100)
commitc45844eb7dadcd48e3ce84444a45c270382f7ad1
treec0733da48e548532b56ddda6a824372321d3d8e1
parentefdda203f52b9b55ef9acc8ad668bbd0570a8de6
libstdc++: Fix std::basic_stracktrace to not assume allocators throw std::bad_alloc

The standard allows allocators to throw any kind of exception, not only
something that can be caught as std::bad_alloc. std::basic_stracktrace
was assuming std::bad_alloc.

libstdc++-v3/ChangeLog:

* include/std/stacktrace (basic_stacktrace::_Impl::_M_allocate):
Do not assume allocators only throw std::bad_alloc.
libstdc++-v3/include/std/stacktrace