[PR c++/84702] ICE with default tmpl arg of overload set
[official-gcc.git] / gcc / testsuite / g++.dg / expr / cond11.C
blob6f91cf917ac8a68acd3a00123a6fa00439e18886
1 struct A;
2 struct C
4   operator A();
5 };
7 struct A
9   A(C);
12 extern A a;
13 extern C c;
15 void
16 foo (bool b)
18   b ? c : a;                    // { dg-error "?:" }
19   // { dg-message "ambiguous" "" { target *-*-* } .-1 }