Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / g++.dg / parse / ambig3.C
blob41390710f803af6466eb3e5e2e8c6b01b2b38db4
1 // PR c++/9452
2 // Origin: Wolfgang Bangerth <bangerth@ticam.utexas.edu>
3 // { dg-do compile }
5 template <int> struct A { static const int i = 1; };
6 template <int> struct B {};
8 template <typename> int foo(B<0>)
10   return 0;
11
13 template <typename, int j> B<A<j>::i-1> foo(B<j>)
15   return B<0>();
16
18 int main()
20   return foo<int>(B<0>());
21