1 // Build don't link: 2 3 class A 4 { 5 public: 6 typedef int Info; 7 }; 8 9 template <class T> 10 class B : public A 11 { 12 public: 13 typedef struct{ 14 int a; 15 int b; 16 } Info; 17 }; 18 f()19 void f() 20 { 21 B<A>::Info ie; 22 ie.a=1; 23 ie.b=2; 24 } 25