public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/115480] New: Difference between trivial copyability of std::pair under Clang in C++23
@ 2024-06-13 18:09 ldionne.2 at gmail dot com
  2024-06-13 18:15 ` [Bug c++/115480] " pinskia at gcc dot gnu.org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: ldionne.2 at gmail dot com @ 2024-06-13 18:09 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115480

            Bug ID: 115480
           Summary: Difference between trivial copyability of std::pair
                    under Clang in C++23
           Product: gcc
           Version: 15.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libstdc++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: ldionne.2 at gmail dot com
  Target Milestone: ---

Let's say Foo is a trivially copyable type without an assignment operator.

In C++23, std::pair<Foo, int> is currently trivially copyable using Clang trunk
and GCC trunk. However, it wasn't trivially copyable in the Clang 15 era.

Godbolt: https://godbolt.org/z/TKK7qhhbM

I don't know whether y'all care about this, but we ran into this while
investigating some libc++ stuff and we thought we'd point it out in case it was
considered an ABI break introduced ~2 years ago.

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

end of thread, other threads:[~2024-06-14 15:35 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-06-13 18:09 [Bug libstdc++/115480] New: Difference between trivial copyability of std::pair under Clang in C++23 ldionne.2 at gmail dot com
2024-06-13 18:15 ` [Bug c++/115480] " pinskia at gcc dot gnu.org
2024-06-13 18:20 ` pinskia at gcc dot gnu.org
2024-06-13 18:24 ` pinskia at gcc dot gnu.org
2024-06-13 18:28 ` pinskia at gcc dot gnu.org
2024-06-13 18:30 ` pinskia at gcc dot gnu.org
2024-06-14 15:35 ` 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).