// { dg-do compile { target c++17 } } #include struct A{ A(int); }; struct B{ B(){}; }; void f(std::variant); int f(B); int unambiguous = f({}); // { dg-bogus "ambiguous" }