// PR c++/28559 template struct A { struct B; }; struct C { template friend struct __attribute__((packed)) A::B; // { dg-warning "uninstantiated" } };