1// { dg-do run  }
2// Bug: g++ generates an error trying to generate the first foo<int>, when
3// it should silently fail and go on to the next one.
4
5template<class T, typename U> class A { };
6
7template<class T> void
8foo(const A<T,typename T::N>&);
9
10template<typename T>
11class B { };
12
13template<typename T> void
14foo(B<T> const &) { }
15
16int
17main(void)
18{
19  B<int> sa;
20
21  foo<int> (sa);
22}
23