// { dg-do compile { target c++11 } } // PR c++/13791 template struct O { struct [[gnu::packed]] I { int i; char c; }; I* foo(); }; template typename O::I* O::foo() { return 0; } template class O;