https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103563
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |INVALID --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- No because std::variant has the following constructor: template< class T > constexpr variant( T&& t ) noexcept(/* see below */); So it is calling that. This constructor is not marked as explicit either.