// PR c++/28559 // { dg-do compile { target c++11 } } template struct A { struct B; }; struct C { template friend struct [[gnu::packed]] A::B; // { dg-warning "uninstantiated" } };