// PR c++/28560 template struct A {}; template struct B; template struct C : A::X __attribute__((unused))> {}; // { dg-warning "attribute" }