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))
;
}