https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115063
Bug ID: 115063 Summary: compilation error: std::basic_stracktrace::max_size() Product: gcc Version: 14.1.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: faithandbrave at gmail dot com Target Milestone: --- #include <iostream> #include <stacktrace> int main() { std::stacktrace trace{}; std::cout << trace.max_size() << std::endl; } outputs: In file included from <source>:2: /opt/compiler-explorer/gcc-14.1.0/include/c++/14.1.0/stacktrace: In instantiation of 'std::basic_stacktrace<_Allocator>::size_type std::basic_stacktrace<_Allocator>::max_size() const [with _Allocator = std::allocator<std::stacktrace_entry>; size_type = short unsigned int]': <source>:6:30: required from here 6 | std::cout << trace.max_size() << std::endl; | ~~~~~~~~~~~~~~^~ /opt/compiler-explorer/gcc-14.1.0/include/c++/14.1.0/stacktrace:433:43: error: 'const struct std::basic_stacktrace<std::allocator<std::stacktrace_entry> >::_Impl' has no member named '_M_alloc'; did you mean '_M_allocate'? 433 | { return _Impl::_S_max_size(_M_impl._M_alloc); } | ~~~~~~~~^~~~~~~~ | _M_allocate Compiler returned: 1