aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/enum6.C
blob: acfd681ec92a06f1cad400464829a7f2ead84515 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Build don't link:

template <class T>
struct vector {};

template<class T>
void fn(T)
{
  enum tern { H, L, X, U };

  vector<tern> ternvec; // ERROR - composed from a local type
}

template void fn(int);