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

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).