// Build don't link: // GROUPS passed templates template class L { public: L(); T x[30]; int doit(int i) const; }; #ifdef BUG template int L::doit(int i) const { return x[i].z; } #endif class X { public: class Y { public: Y(); Y(int); int z; }; L ly; }; #ifndef BUG template int L::doit(int i) const { return x[i].z; } #endif static X x;