1// PR c++/18674
2
3template <typename I>
4static void g() {
5  enum I::t a; // { dg-error "" }
6  (void) a;
7}
8
9struct B {
10  typedef int t;
11};
12
13void h()
14{
15  g<B>();
16}
17