// PR c++/51148 // { dg-do compile { target c++11 } } template struct S {}; template struct T { friend class S; // { dg-error "parameter packs not expanded" } }; int main() {}