blob: 8b93193c7b0cf23172c4c5825fc184a728f93868 [file] [log] [blame]
// PR c++/86439
// { dg-do compile { target c++17 } }
struct less { };
struct allocator { };
template<class T, class U = less, class V = allocator>
struct A {
A(T, U);
A(T, V);
};
template<class T, class U = less>
A(T, U) -> A<T>;
A a(0, {}); // { dg-error "ambiguous" }