Internal complier error in egcs-2.1.63?

Magnus Reftel d96reftl@dtek.chalmers.se
Mon Apr 19 10:59:00 GMT 1999


/*
Hi,

there seems to be a bug in egcs that prevents Crystal Space from
compiling.  The code below is a rather destilled version of soft_g3d.cpp
from Crystal Space 0.13r008.

bash-2.01$ uname -a
Linux skutt 2.2.4 #8 Sat Apr 17 21:25:02 CEST 1999 i586 unknown
bash-2.01$ c++ --version
egcs-2.91.63
bash-2.01$ c++ crash.cpp
crash.cpp: In method `void MyClass::myMeth()':
crash.cpp:16: Internal compiler error 191.
crash.cpp:16: Please submit a full bug report to `egcs-bugs@egcs.cygnus.com'.
crash.cpp:16: See <URL: http://egcs.cygnus.com/faq.html#bugreport > for details.
bash-2.01$ 
*/

class Base {};
class A : Base {};
class B : Base {};

class MyClass : A, B
{
public:
	void myMeth();
	int myInt;
};

typedef MyClass MySynonym;

void MyClass::myMeth()
{
	int* foo=&((MySynonym*)0)->myInt;
}

int main()
{
	MyClass m();
	return 0;
}

/*Regards
  Magnus Reftel <d96reftl@dtek.chalmers.se>*/



More information about the Gcc-bugs mailing list