2 // GROUPS passed old-abort
4 I received the following message when using g++ (version 2.3.3):
6 main.cc: In method 'Implicit<implicit<INTEGER,2>,3>::Implicit()':
7 main.cc: Internal compiler error 241.
8 main.cc: Please report this to 'bug-g++@prep.ai.mit.edu'
17 INTEGER(int y) : x(y) {}
19 void encode() { std::cout << "Integer encoder";}
20 int operator=(int y) { x=y; return x; }
21 operator int() {return x; }
24 template< class T, int n> class Implicit : public T {
26 typedef typename T::BASE BASE;
27 Implicit(BASE value ): T(value) {}
29 int myTag() { return n; }
30 void encode() { T::encode(); }
31 BASE operator=(BASE t) { return T::operator=(t); }
37 Implicit<Implicit<INTEGER, 2> , 3> y;