2 // Although template class B is not used at all, it causes the
3 // incorrect specialization of A to be selected
5 // Adapted from testcase by Oskar Enoksson <osken393@student.liu.se>
7 extern "C" void abort();
9 template<int N, class T> // Base class
10 class A { public: static int n() { return sizeof(T); } };
12 template<int N> // Derived #1
13 class B: public A<N,char[N]> {};
15 template<int N, int M> // Derived #2 (wrong!)
16 class C: public A<N,char[M]> {};