1 template <class T> 2 struct S { fS3 static int f () 4 { 5 static int i; 6 return ++i; 7 } SS8 S () {}; ~SS9 ~S () {}; 10 }; 11 12 typedef S<int> a; 13 g()14 int g () 15 { 16 return a::f(); 17 } 18