// { dg-do compile { target c++11 } } template int foo() { typename T::X x; // { dg-error "parameter packs|T" } return x; } void bar() { foo(); }