https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122313
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2025-10-18
Blocks| |88322
Ever confirmed|0 |1
Keywords| |rejects-valid
--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to Jeroen Van Antwerpen from comment #0)
> Given that `S` is EmplaceConstructible from `int`, I would expect this code
> to work.
It's EmplaceConstructible since C++20, when S(1) became equivalent to S{1}.
> Both libc++ and msvc STL accept this code.
Libc++ only accepts this since Clang 21
Referenced Bugs:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88322
[Bug 88322] Implement C++20 library features.