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.

Reply via email to