2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.robertl / 980310-1.C
blob860080ea9424b0b466f3789eae77dce5717cdb91
1 // { dg-do run  }
2 // { dg-options "-g" }
3 // Internal compiler error on egcs 1.0.1 i586-pc-linux-gnulibc1. 
4 // From: Max Lawson <mlawson@drfmc.ceng.cea.fr>
5 // Message-Id: <9803091022.AA07520@drfmc.ceng.cea.fr>
8 typedef __SIZE_TYPE__ size_t;
10 struct dummy { };
12 struct arrrrrgh { };
14 template<class Par,class Rand = arrrrrgh>
15 struct whyyyyyyy { };    
17 template<class T, class S =dummy> 
18 struct grrrrrrrr { };         
20 template<class Par, class Par2 =Par, class Rand =arrrrrgh>
21 class no_future
23 public:
24    
25   template<class S>
26   no_future(const grrrrrrrr<whyyyyyyy<Par,Rand>*,S>& man )  { }
28   ~no_future( ) { }
30 private:
32   no_future(const no_future&);
33   no_future& operator=(const no_future&);
34 };       
36 int main( )
38   grrrrrrrr<whyyyyyyy<double>*> man;
40   no_future<double> here(man);
42   return 0;