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
* [Bug libstdc++/115063] compilation error: std::basic_stracktrace::max_size() 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 ` redi at gcc dot gnu.org 2024-05-14 9:50 ` cvs-commit at gcc dot gnu.org ` (3 subsequent siblings) 4 siblings, 0 replies; 6+ messages in thread From: redi at gcc dot gnu.org @ 2024-05-13 9:09 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115063 Jonathan Wakely <redi at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Ever confirmed|0 |1 Target Milestone|--- |13.3 Keywords| |rejects-valid Assignee|unassigned at gcc dot gnu.org |redi at gcc dot gnu.org Last reconfirmed| |2024-05-13 Status|UNCONFIRMED |ASSIGNED ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug libstdc++/115063] compilation error: std::basic_stracktrace::max_size() 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 ` (2 subsequent siblings) 4 siblings, 0 replies; 6+ messages in thread From: cvs-commit at gcc dot gnu.org @ 2024-05-14 9:50 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115063 --- Comment #1 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-14 branch has been updated by Jonathan Wakely <redi@gcc.gnu.org>: https://gcc.gnu.org/g:c60205cd4aeea586b7b1fe06baa9861b6d279648 commit r14-10207-gc60205cd4aeea586b7b1fe06baa9861b6d279648 Author: Jonathan Wakely <jwakely@redhat.com> Date: Mon May 13 16:25:13 2024 +0100 libstdc++: Fix typo in std::stacktrace::max_size [PR115063] 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) ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug libstdc++/115063] compilation error: std::basic_stracktrace::max_size() 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 4 siblings, 0 replies; 6+ messages in thread From: cvs-commit at gcc dot gnu.org @ 2024-05-14 9:52 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115063 --- Comment #2 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-13 branch has been updated by Jonathan Wakely <redi@gcc.gnu.org>: https://gcc.gnu.org/g:7dca716decf5a07f903610fda9457ff0422d2758 commit r13-8772-g7dca716decf5a07f903610fda9457ff0422d2758 Author: Jonathan Wakely <jwakely@redhat.com> Date: Mon May 13 16:25:13 2024 +0100 libstdc++: Fix typo in std::stacktrace::max_size [PR115063] 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) ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug libstdc++/115063] compilation error: std::basic_stracktrace::max_size() 2024-05-13 6:57 [Bug libstdc++/115063] New: compilation error: std::basic_stracktrace::max_size() faithandbrave at gmail dot com ` (2 preceding siblings ...) 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 4 siblings, 0 replies; 6+ messages in thread From: cvs-commit at gcc dot gnu.org @ 2024-05-14 9:57 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115063 --- Comment #3 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Jonathan Wakely <redi@gcc.gnu.org>: https://gcc.gnu.org/g:ccc26a1af07b34ce2e7d3b2497f27992d1b1bbc2 commit r15-481-gccc26a1af07b34ce2e7d3b2497f27992d1b1bbc2 Author: Jonathan Wakely <jwakely@redhat.com> Date: Mon May 13 16:25:13 2024 +0100 libstdc++: Fix typo in std::stacktrace::max_size [PR115063] 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. ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug libstdc++/115063] compilation error: std::basic_stracktrace::max_size() 2024-05-13 6:57 [Bug libstdc++/115063] New: compilation error: std::basic_stracktrace::max_size() faithandbrave at gmail dot com ` (3 preceding siblings ...) 2024-05-14 9:57 ` cvs-commit at gcc dot gnu.org @ 2024-05-14 9:59 ` redi at gcc dot gnu.org 4 siblings, 0 replies; 6+ messages in thread From: redi at gcc dot gnu.org @ 2024-05-14 9:59 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115063 Jonathan Wakely <redi at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Status|ASSIGNED |RESOLVED --- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> --- Fixed for 13.3 and 14.2, thanks for the report. ^ 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).