Internal compiler error 754867

Ryszard Kabatek Kabatek@Chemie.UNI-Halle.DE
Mon Sep 21 03:35:00 GMT 1998


The sample below is incorrect, but the compiler
should not break down.

eg++ main.cc
In function `int main()':
Internal compiler error 754867.
Please submit a full bug report to `egcs-bugs@cygnus.com'.

// main.cc

class B {public: virtual ~B(){}};
class D : public B {};

int main()
{
	B* p = new D;
	if (D& d = dynamic_cast<D&>(*p))
		 ;
}



More information about the Gcc-bugs mailing list