// { dg-do compile { target c++17 } } // LWG 3585. Variant converting assignment with immovable alternative #include #include struct A { A() = default; A(A&&) = delete; }; int main() { std::variant v; v = "hello"; }