// { dg-do assemble } // Based on bug report by Miniussi class t {}; template struct A { typedef T t; typedef T u; }; template struct B : public A { // according to [temp.dep.type], `t' and `u' cannot be dependent types, // and so there's no reason to delay lookup to specialization time. void f(t p); // this is ::t [temp.dep]/3 void f(typename A::t p); // { dg-bogus "" } redefinition void g(u p); // { dg-error "" } unknown type name };