← Back to team overview

leaningtech-dev team mailing list archive

[Bug 1247335] Re: Unable to use dynamic_cast (no RTTI)

 

Unfortunale RTTI is currently not supported. I've a partial solution for
single inheritance cases but still need to fix multiple inheritance.
That would only left out virtual inheritance which is currently
unsupported anyway.

** Changed in: duetto
       Status: New => Confirmed

** Changed in: duetto
   Importance: Undecided => High

-- 
You received this bug notification because you are a member of
Leaningtech Team, which is subscribed to Duetto.
https://bugs.launchpad.net/bugs/1247335

Title:
  Unable to use dynamic_cast (no RTTI)

Status in Duetto: C++ for the Web:
  Confirmed

Bug description:
  class A { public: virtual ~A() {} };
  class B : public A { public: virtual ~B() {} };
  A *a = dynamic_cast<B*>(new A);

  
  HelloClient.cpp:61:12: error: cannot use dynamic_cast with -fno-rtti
      A *a = dynamic_cast<B*>(new A);

  RTTI is disabled by default, is possible to enable it somehow? I want
  to port some codes in duetto however I need RTTI.

To manage notifications about this bug go to:
https://bugs.launchpad.net/duetto/+bug/1247335/+subscriptions