blob: 0cbfc0db7f58fb9a6b4bc873dba1c3d5393ef129 [file] [log] [blame]
// { dg-do compile { target c++17 } }
// LWG 3585. Variant converting assignment with immovable alternative
#include <variant>
#include <string>
struct A {
A() = default;
A(A&&) = delete;
};
int main() {
std::variant<A, std::string> v;
v = "hello";
}