summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/enum8.C
blob: e5cc58a4a2d4248a544ed4254c9239a38ba1fe70 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Build don't link:

template <int I>
void f();

template <>
void f<4>() {}

template <class T>
struct S
{
  enum E { a = 1, b = a + 3 };
};

int main()
{
  f<S<int>::b>();
}