public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/115063] New: compilation error: std::basic_stracktrace::max_size()
@ 2024-05-13  6:57 faithandbrave at gmail dot com
  2024-05-13  9:09 ` [Bug libstdc++/115063] " redi at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: faithandbrave at gmail dot com @ 2024-05-13  6:57 UTC (permalink / raw)
  To: gcc-bugs

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2024-05-14  9:59 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-05-13  6:57 [Bug libstdc++/115063] New: compilation error: std::basic_stracktrace::max_size() faithandbrave at gmail dot com
2024-05-13  9:09 ` [Bug libstdc++/115063] " redi at gcc dot gnu.org
2024-05-14  9:50 ` cvs-commit at gcc dot gnu.org
2024-05-14  9:52 ` cvs-commit at gcc dot gnu.org
2024-05-14  9:57 ` cvs-commit at gcc dot gnu.org
2024-05-14  9:59 ` redi at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).