libstdc++-v3/ChangeLog:
PR libstdc++/115063
* include/std/stacktrace (basic_stacktrace::max_size): Fix typo
in reference to _M_alloc member.
* testsuite/19_diagnostics/stacktrace/stacktrace.cc: Check
max_size() compiles.
(cherry picked from commit
dd9677f3343ca2a4b4aab9428b8129774accac29)
size_type
max_size() const noexcept
- { return _Impl::_S_max_size(_M_impl._M_alloc); }
+ { return _Impl::_S_max_size(_M_alloc); }
const_reference
operator[](size_type __n) const noexcept
s = auto(s);
}
+void
+test_pr115063()
+{
+ // PR libstdc++/115063
+ // compilation error: std::basic_stracktrace::max_size()
+ std::stacktrace s;
+ VERIFY( s.max_size() != 0 );
+}
+
int main()
{
test_cons();
test_assign();
test_swap();
test_pr105031();
+ test_pr115063();
}