FSF GCC merge 02/23/03
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.robertl / 980310-1.C
blobee558f41221cc9d56f35a7ef1c8b7f3cf1c464a2
1 // Special g++ Options: -g
2 // Internal compiler error on egcs 1.0.1 i586-pc-linux-gnulibc1. 
3 // From: Max Lawson <mlawson@drfmc.ceng.cea.fr>
4 // Message-Id: <9803091022.AA07520@drfmc.ceng.cea.fr>
7 typedef __SIZE_TYPE__ size_t;
9 struct dummy { };
11 struct arrrrrgh { };
13 template<class Par,class Rand = arrrrrgh>
14 struct whyyyyyyy { };    
16 template<class T, class S =dummy> 
17 struct grrrrrrrr { };         
19 template<class Par, class Par2 =Par, class Rand =arrrrrgh>
20 class no_future
22 public:
23    
24   template<class S>
25   no_future(const grrrrrrrr<whyyyyyyy<Par,Rand>*,S>& man )  { }
27   ~no_future( ) { }
29 private:
31   no_future(const no_future&);
32   no_future& operator=(const no_future&);
33 };       
35 int main( )
37   grrrrrrrr<whyyyyyyy<double>*> man;
39   no_future<double> here(man);
41   return 0;