You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using inheritance in an IDL, idlc produces incorrect C++ headers for chained inheritance. Please see the below example.
// example/example.idlinterfaceA {
};
interfaceB: A {
};
interfaceC: B {
};
The compiled idl results in this class for interface C:
classIA {}; // base classclassIB : publicIA {}; // B inherits from AclassIC : publicIB IA {}; // C inherits from B(which inherits A) and A without a comma?
This gives the compiler error:
In file included from main.cpp:2:
./example.hpp:54:21: error: expected '{' after base class list
class IC : public IB IA {
^
The compiled idl should return this instead.
classIA {}; // base classclassIB : publicIA {}; // B inherits from AclassIC : publicIB {}; // C inherits from B(which inherits A)
When using inheritance in an IDL, idlc produces incorrect C++ headers for chained inheritance. Please see the below example.
The compiled idl results in this class for interface C:
This gives the compiler error:
The compiled idl should return this instead.
See this example:
inheritance.zip
The text was updated successfully, but these errors were encountered: