FSF GCC merge 02/23/03
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.pt / explicit78.C
blob2375816af87cdd33801b0065c60e5a7f8b0160d8
1 // Build don't link:
3 template <int I>
4 struct A {
5 };
7 template <int I, int J>
8 struct B {
9   operator A<3> ();
10   operator B<3, 7> ();
14 template <int I, int J>
15 void f(B<I, J>);
17 template <int I>
18 void f(A<I>)
22 int main()
24   // Deduction fails with the first `f'.  Since `3' is explicitly
25   // specified, we don't try any deduction with the second `f'.  So,
26   // we call the second `f'.
27   f<3>(B<2, 7>());