// PR c++/52380 // { dg-do compile { target c++11 } } template struct S { template struct Unary // Line 5 {}; template struct Dispatch // Line 9 : public Unary {}; template struct Variadic : public Dispatch {}; }; int main() { S::Variadic z; }