OSDN Git Service

* decl.c (compute_array_index_type): Don't try to do anything with
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.old-deja / g++.pt / explarg1.C
1 // Bug: g++ generates an error trying to generate the first foo<int>, when
2 // it should silently fail and go on to the next one.
3
4 template<class T, typename U> class A { };
5
6 template<class T> void
7 foo(const A<T,typename T::N>&);
8
9 template<typename T>
10 class B { };
11
12 template<typename T> void
13 foo(B<T> const &) { }
14
15 int
16 main(void)
17 {
18   B<int> sa;
19
20   foo<int> (sa);
21 }