1 // { dg-do compile } 2 3 struct A 4 { 5 static int i; 6 }; 7 struct B 8 { 9 typedef ::A A; 10 }; 11 int B::A::i = 0; 12 13 struct K 14 { 15 struct L 16 { 17 template <typename T> 18 static void f(T); 19 }; 20 }; 21 22 template <typename T> 23 struct O 24 { 25 typedef K Q; 26 }; 27 28 template <typename T> f(T)29void O<T>::Q::L::f(T) 30 { 31 } 32