[PR c++/84702] ICE with default tmpl arg of overload set
[official-gcc.git] / gcc / testsuite / g++.dg / DRs / dr2137-2.C
blobba90860b3afea34db78f267dac7623a294e7c619
1 // DR 2137
2 // { dg-do link { target c++11 } }
4 // Test that copying Q is better than converting to R.
6 struct Q {
7   Q() { }
8   Q(const Q&) { }
9 };
11 struct R {
12   R(const Q&);
15 void f(Q) { }
16 void f(R);
18 int main()
20   f({Q()});