← Back to team overview

leaningtech-dev team mailing list archive

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

 

** Changed in: cheerp
       Status: Fix Committed => Fix Released

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

Title:
  Unable to use dynamic_cast (no RTTI)

Status in Cheerp:
  Fix Released

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/cheerp/+bug/1247335/+subscriptions