aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/template/error16.C
blob: 0da024bc665228cdb7dd46c5d1f8c1689158b334 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// PR c++/18674

template <typename I>
static void g() {
  enum I::t a; // { dg-error "" }
  (void) a;
}

struct B {
  typedef int t;
};

void h()
{
  g<B>();
}