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