FSF GCC merge 02/23/03
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.jason / template39.C
blobdc76889e4e0449cb28cf8accc5378b052b07aae8
1 // PRMS Id: 10283
2 // Build don't link:
4 template <class T> struct B {
5   static void (*p)();
6   static void f ();
7 };
9 template <class T>
10 void (*B<T>::p)() = &B<T>::f;
12 B<int> b;
14 template <int i> struct A {
15   static const int j = i;
16   int k[j];
19 A<1> a;
21 template <int i>
22 const int A<i>::j;