FSF GCC merge 02/23/03
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.other / instan1.C
blob87c966d1cd01b3a31aaa32f27303fbd319cae8e4
1 // Build don't run:
2 // Origin: Mark Mitchell <mark@codesourcery.com>
3 // Special g++ Options: -fno-implicit-templates
5 template <class T>
6 struct U {
7   static int j;
8 };
10 template <class T>
11 struct S {
12   static const int i = 7;
15 template <class T>
16 const int S<T>::i;
18 template <class T>
19 int U<T>::j = S<T>::i + 5;
21 template int U<double>::j;
23 int main () {