PR c++/81917 - ICE with void_t and partial specialization.
[official-gcc.git] / gcc / testsuite / g++.dg / overload / ambig3.C
blob01d4cc632868892ba05f7c9ac37b6872ce14afe7
1 // PR c++/77563
3 struct A {
4   A(int) {}
5   A(unsigned) {}  // Comment to make it work
7   explicit A(long) {}  // Comment to make it work
8 };
10 void f(A) { }
12 int main() {
13   f(2);
14   f(3l);                        // { dg-error "ambiguous" }