2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.jason / template15.C
blobb1530201b4a94ce2209de9b25ad675cd7e3f3984
1 // { dg-do run  }
2 // PRMS Id: 2139
3 // Bug: g++ tries to instantiate the template with types on the function
4 // obstack and fails.
6 template<class T>
7 class X {
8 public:
9     X(int) { }
11     T x;
14 class A { };
16 int main()
18     int i;
19     X<int> xi(i);
20     X<double> xd(i);
21     
22     X<int (*)(int, void *)> fp0(i);
23     X<int (*)(int, char, double)> fp1(i);
24     X<int (*)(int, double**, void *)> fp2(i);
26     X<int (A::*)()> mp0 (i);
27     X<int A::*> mp1 (i);