public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/105505] New: P1951R1 (Default Arguments for pair's Forwarding Constructor) is unimplemented
@ 2022-05-06 14:48 ensadc at mailnesia dot com
2022-05-06 17:11 ` [Bug libstdc++/105505] " redi at gcc dot gnu.org
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: ensadc at mailnesia dot com @ 2022-05-06 14:48 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105505
Bug ID: 105505
Summary: P1951R1 (Default Arguments for pair's Forwarding
Constructor) is unimplemented
Product: gcc
Version: 12.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: libstdc++
Assignee: unassigned at gcc dot gnu.org
Reporter: ensadc at mailnesia dot com
CC: redi at gcc dot gnu.org
Target Milestone: ---
https://en.cppreference.com/w/cpp/compiler_support claims that P1951R1 (Default
Arguments for pair's Forwarding Constructor) is supported in GCC libstdc++ 12,
but it seems that libstdc++ 12 doesn't actually add default template arguments
for said forwarding constructor.
For example, the following still does not work with libstdc++ (but works with
latest libc++ and MSVC STL: https://godbolt.org/z/6oY3G77oT).
```
#include <utility>
struct MoveOnly {
MoveOnly();
MoveOnly(MoveOnly&&);
};
std::pair<int, MoveOnly> p{42, {}};
```
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug libstdc++/105505] P1951R1 (Default Arguments for pair's Forwarding Constructor) is unimplemented
2022-05-06 14:48 [Bug libstdc++/105505] New: P1951R1 (Default Arguments for pair's Forwarding Constructor) is unimplemented ensadc at mailnesia dot com
@ 2022-05-06 17:11 ` redi at gcc dot gnu.org
2022-09-29 18:11 ` redi at gcc dot gnu.org
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: redi at gcc dot gnu.org @ 2022-05-06 17:11 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105505
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2022-05-06
Ever confirmed|0 |1
--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
I thought I'd pushed that change but apparently not.
I've fixed the cppreference page.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug libstdc++/105505] P1951R1 (Default Arguments for pair's Forwarding Constructor) is unimplemented
2022-05-06 14:48 [Bug libstdc++/105505] New: P1951R1 (Default Arguments for pair's Forwarding Constructor) is unimplemented ensadc at mailnesia dot com
2022-05-06 17:11 ` [Bug libstdc++/105505] " redi at gcc dot gnu.org
@ 2022-09-29 18:11 ` redi at gcc dot gnu.org
2024-01-11 22:51 ` redi at gcc dot gnu.org
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: redi at gcc dot gnu.org @ 2022-09-29 18:11 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105505
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
Assignee|unassigned at gcc dot gnu.org |redi at gcc dot gnu.org
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug libstdc++/105505] P1951R1 (Default Arguments for pair's Forwarding Constructor) is unimplemented
2022-05-06 14:48 [Bug libstdc++/105505] New: P1951R1 (Default Arguments for pair's Forwarding Constructor) is unimplemented ensadc at mailnesia dot com
2022-05-06 17:11 ` [Bug libstdc++/105505] " redi at gcc dot gnu.org
2022-09-29 18:11 ` redi at gcc dot gnu.org
@ 2024-01-11 22:51 ` redi at gcc dot gnu.org
2024-01-12 9:48 ` cvs-commit at gcc dot gnu.org
2024-01-12 20:39 ` redi at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: redi at gcc dot gnu.org @ 2024-01-11 22:51 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105505
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |14.0
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug libstdc++/105505] P1951R1 (Default Arguments for pair's Forwarding Constructor) is unimplemented
2022-05-06 14:48 [Bug libstdc++/105505] New: P1951R1 (Default Arguments for pair's Forwarding Constructor) is unimplemented ensadc at mailnesia dot com
` (2 preceding siblings ...)
2024-01-11 22:51 ` redi at gcc dot gnu.org
@ 2024-01-12 9:48 ` cvs-commit at gcc dot gnu.org
2024-01-12 20:39 ` redi at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2024-01-12 9:48 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105505
--- Comment #2 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:35f8c661d67f53486f2f3e25887323476a7d0c2b
commit r14-7173-g35f8c661d67f53486f2f3e25887323476a7d0c2b
Author: Jonathan Wakely <jwakely@redhat.com>
Date: Thu Jan 11 22:38:02 2024 +0000
libstdc++: Implement C++23 P1951R1 (Default Args for pair's Forwarding
Ctor) [PR105505]
This was approved for C++23 at he June 2021 virtual meeting.
This allows more efficient construction of std::pair members when {} is
used as a constructor argument. The perfect forwarding constructor can
be used, so that the member variables are constructed from forwarded
arguments instead of being copy constructed from temporaries.
libstdc++-v3/ChangeLog:
PR libstdc++/105505
* include/bits/stl_pair.h (pair::pair(U1&&, U2&&)) [C++23]: Add
default template arguments, as per P1951R1.
* testsuite/20_util/pair/cons/default_tmpl_args.cc: New test.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug libstdc++/105505] P1951R1 (Default Arguments for pair's Forwarding Constructor) is unimplemented
2022-05-06 14:48 [Bug libstdc++/105505] New: P1951R1 (Default Arguments for pair's Forwarding Constructor) is unimplemented ensadc at mailnesia dot com
` (3 preceding siblings ...)
2024-01-12 9:48 ` cvs-commit at gcc dot gnu.org
@ 2024-01-12 20:39 ` redi at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: redi at gcc dot gnu.org @ 2024-01-12 20:39 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105505
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution|--- |FIXED
--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> ---
I really have pushed it now
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2024-01-12 20:39 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-06 14:48 [Bug libstdc++/105505] New: P1951R1 (Default Arguments for pair's Forwarding Constructor) is unimplemented ensadc at mailnesia dot com
2022-05-06 17:11 ` [Bug libstdc++/105505] " redi at gcc dot gnu.org
2022-09-29 18:11 ` redi at gcc dot gnu.org
2024-01-11 22:51 ` redi at gcc dot gnu.org
2024-01-12 9:48 ` cvs-commit at gcc dot gnu.org
2024-01-12 20:39 ` 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).