summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/explarg1.C
blob: b78b483a217db77af94a317f8de397dc5b796afe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// { dg-do run  }
// Bug: g++ generates an error trying to generate the first foo<int>, when
// it should silently fail and go on to the next one.

template<class T, typename U> class A { };

template<class T> void
foo(const A<T,typename T::N>&);

template<typename T>
class B { };

template<typename T> void
foo(B<T> const &) { }

int
main(void)
{
  B<int> sa;

  foo<int> (sa);
}