bug in egcs-1.1b
Ruslan Shevchenko
Ruslan@Shevchenko.Kiev.UA
Mon Oct 12 14:32:00 GMT 1998
When I try to compile next code:
struct X { virtual int z() { return 1; } };
struct Y:public X { virtual int z() { return 2; } };
int check_dynamic_cast() { X x; return dynamic_cast<Y*>(&x)!=0; }
int main() { return check_dynamic_cast(); }
I receive next output:
goblin:$ gcc t1.cpp 2>&1
t1.cpp:3: sorry, not implemented: `addr_expr' not supported by dump_decl
t1.cpp: In function `int check_dynamic_cast()':
t1.cpp:3: warning: dynamic_cast of `' to `struct Y *' can never succeed
goblin:$
and t1.o not prodused.
Is this a known bug ?
--
@=
//RSSH
mailto:Ruslan@Shevchenko.Kiev.UA
CORBA in Ukraine & ex-USSR: http://www.corbadev.kiev.ua
More information about the Gcc
mailing list