// Build don't link: template class B { public: A a; }; static B b_int; static B b_int2; int foo () { return b_int.a + b_int2.a; }