// PR c++/18674 template static void g() { enum I::t a; // { dg-error "" } (void) a; } struct B { typedef int t; }; void h() { g(); }