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