summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.jason/template2.C
blob: 07c54f82f640f3620d5cc765da8c09fe932ae167 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// { dg-do assemble  }
// Bug: instantiation of member templates breaks.

template <class T> struct A {
  static void f ();
  void g ();
};

template <class T> void A<T>::f () { }
template <class T> void A<T>::g () { }

A<int> a;