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