IBM Support

Why Do I Get Compiler Warning C4250, inheritance via dominance?

Question & Answer


Question

Why Do I Get Compiler Warning C4250, inheritance via dominance?

Answer

The warning occurs during animation when you have an inheritance relationship where the base class does
not have a statechart, but the derived class does. This situation causes the compiler to issue a warning
because there is multiple inheritance of members with the same name. Since it is simply a warning and not
an error, the message can be ignored. But, if you would like to eliminate the compiler warning, then create a
dummy or blank statechart for the base class.
8 AnswerProduct versionPartner ContentInternal ContentCategoryReference ID

[{"Product":{"code":"SSB2MU","label":"IBM Engineering Systems Design Rhapsody"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":"General Information","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"Version Independent","Edition":"","Line of Business":{"code":"LOB59","label":"Sustainability Software"}}]

Historical Number

10069

Product Synonym

Rational Rhapsody

Document Information

Modified date:
27 May 2022

UID

swg21323470