1 // Build don't link: 2 // GROUPS passed templates 3 class V { 4 public: 5 V(); 6 V(int); 7 }; 8 9 template <int I> class AA: public virtual V { 10 public: 11 AA(); 12 AA(int); 13 }; 14 15 template <int I> class BB : public virtual V { 16 public: 17 BB(); 18 BB(int); 19 }; 20 AA()21template <int I> AA<I>::AA() {}; AA(int i)22template <int I> AA<I>::AA(int i): V(i) {}; BB()23template <int I> BB<I>::BB() {}; BB(int i)24template <int I> BB<I>::BB(int i) {}; 25 26 class CC : public AA<1>, public BB<2> { 27 public: 28 CC(); 29 CC(int); 30 }; 31 32