// PR c++/119303 template struct c { enum { d = 4 }; }; template struct e { typedef void g; }; template inline typename e::d>::g bar(_Tp); // { dg-warning "used but never defined" } int x; void foo() { bar(x); }