This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

bug in egcs-1.1b


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]