aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.jason/net.C
blob: be8b962ad80576e8ed25b6ab9e7f83401b9b4caa (plain)
1
2
3
4
5
6
7
8
9
10
// Bug: g++ doesn't instantiate function templates in instantiate_type.
// Build don't link:

template <class T> void fn (T t) { }
template <class T> struct A {
  void (*p)(T);
  A() { p = fn; }
};

A<int> a;