// PR c++/13791 template struct O { struct __attribute__((packed)) I { int i; char c; }; I* foo(); }; template typename O::I* O::foo() { return 0; } template class O;