1 struct P {}; 2 3 template <typename > 4 struct O 5 { 6 struct I; 7 }; 8 9 template <typename T> 10 struct O<T>::I::S : P {}; // { dg-error "" } 11