[Bug c++/124275] GCC rejects trivially copying a non-constexpr class object containing nullptr_t in constant initialization
pinskia at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Feb 27 05:46:27 GMT 2026
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=124275
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
See Also| |https://gcc.gnu.org/bugzill
| |a/show_bug.cgi?id=106650
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Also related to p2280
(https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2022/p2280r4.html).
Because that is how:
constexpr X(const X& other) noexcept : n(other.n) {}
But maybe not since it was accepted before GCC 14.
More information about the Gcc-bugs
mailing list