2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.pt / crash54.C
blob72f92d12818b932bdade08f965e60b4c58216eaf
1 // { dg-do assemble  }
2 // Origin: Mark Mitchell <mark@codesourcery.com>
4 template <class T>
5 int g (T);
7 int j = g (3);
9 template <class T>
10 inline T f (T)
12   return 2;
15 template <class T>
16 struct S
18   static const int i;
21 template <class T>
22 const int S<T>::i = f (3);
24 template <class T>
25 int g (T)
27   return S<double>::i;