OSDN Git Service

New tests from Klaus-Georg.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.old-deja / g++.robertl / 980310-1.C
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
7 typedef unsigned int size_t;
8
9 struct dummy { };
10
11 struct arrrrrgh { };
12
13 template<class Par,class Rand = arrrrrgh>
14 struct whyyyyyyy { };    
15
16 template<class T, class S =dummy> 
17 struct grrrrrrrr { };         
18
19 template<class Par, class Par2 =Par, class Rand =arrrrrgh>
20 class no_future
21 {
22 public:
23    
24   template<class S>
25   no_future(const grrrrrrrr<whyyyyyyy<Par,Rand>*,S>& man )  { }
26
27   ~no_future( ) { }
28
29 private:
30
31   no_future(const no_future&);
32   no_future& operator=(const no_future&);
33 };       
34
35 int main( )
36 {
37   grrrrrrrr<whyyyyyyy<double>*> man;
38
39   no_future<double> here(man);
40
41   return 0;
42 }
43