aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.jason/template17.C
blob: 27e4d047ccdbfd1a35dd721b675f8e6ec9c44d9e (plain)
1
2
3
4
5
6
7
8
9
10
11
// Caught by Booch Components.
// Bug: g++ tries to instantiate nested enums.
// Build don't link:

template <class T> struct A
{
  struct B { };
  enum C { c };
};

template struct A<int>;