]> 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 <jwakely@redhat.com>
Mon, 2 Dec 2024 22:41:39 +0000 (22:41 +0000)
commit5425886d1d0239f32f162daf5f2db189d43512e4
tree5654c96e75fbcf1ac62a659ad52598300830c449
parent58ef1c521c15d3c7755e0f96b472b625122ab609
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.

(cherry picked from commit c45844eb7dadcd48e3ce84444a45c270382f7ad1)
libstdc++-v3/include/std/stacktrace