// PR c++/86439 // { dg-do compile { target c++17 } } struct less { }; struct allocator { }; template struct A { A(T, U); A(T, V); }; template A(T, U) -> A; A a(0, {}); // { dg-error "ambiguous" }