[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:59:36 GMT 2026
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=124275
--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Jiang An from comment #0)
> Per https://eel.is/c++draft/expr.const ,
> > - an lvalue-to-rvalue conversion unless it is applied to
> > - a glvalue of type cv std::nullptr_t,
Which was added by https://cplusplus.github.io/CWG/issues/2907.html .
More information about the Gcc-bugs
mailing list