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> 5 6 7typedef __SIZE_TYPE__ size_t; 8 9struct dummy { }; 10 11struct arrrrrgh { }; 12 13template<class Par,class Rand = arrrrrgh> 14struct whyyyyyyy { }; 15 16template<class T, class S =dummy> 17struct grrrrrrrr { }; 18 19template<class Par, class Par2 =Par, class Rand =arrrrrgh> 20class no_future 21{ 22public: 23 24 template<class S> 25 no_future(const grrrrrrrr<whyyyyyyy<Par,Rand>*,S>& man ) { } 26 27 ~no_future( ) { } 28 29private: 30 31 no_future(const no_future&); 32 no_future& operator=(const no_future&); 33}; 34 35int main( ) 36{ 37 grrrrrrrr<whyyyyyyy<double>*> man; 38 39 no_future<double> here(man); 40 41 return 0; 42} 43 44