aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/memtemp73.C
blob: 5732d49756ea3bab7130d79454fb188d85eb5608 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
template <class T> struct A {
  template <class U> void f(U);
};

template <int i> struct B { };

template <class T> template <class U>
void A<T>::f (U)
{
  enum { foo };
  B<foo> b;
}

int main ()
{
  A<char> a;
  a.f (42);
}