// PR c++/94100 // { dg-do compile { target c++11 } } template struct ValListWithTypes { template struct WithVals { using TypeList = ValListWithTypes; }; }; template struct Widget; template struct Widget> { template struct Impl {}; }; template template struct Widget>::Impl< typename ValListWithTypes::template WithVals> {}; int main(void) { Widget::WithVals<0>>::Impl<> impl; }