// PR c++/16965 template struct B { static int Bar(T); // { dg-error "" } }; struct D : B, B {}; int i2 = D::Bar(2); // { dg-error "" }