Skip to content
This repository was archived by the owner on May 18, 2019. It is now read-only.

Commit baf7ba4

Browse files
perostOpenModelica-Hudson
authored andcommitted
Fix for #5111.
- Add cases for enum_expression = cref and enum_expression = enum_expression in InstSection.instEqEquation2. Belonging to [master]: - #2638 - OpenModelica/OpenModelica-testsuite#1028
1 parent 32ad2f5 commit baf7ba4

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Compiler/FrontEnd/InstSection.mo

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1474,6 +1474,12 @@ algorithm
14741474
then
14751475
dae;
14761476

1477+
case (e1, DAE.CREF(componentRef = cr), DAE.T_ENUMERATION(), _, _, initial_)
1478+
then makeDaeDefine(cr, e1, source, initial_);
1479+
1480+
case (e1, e2, DAE.T_ENUMERATION(), _, _, initial_)
1481+
then makeDaeEquation(e1, e2, source, initial_);
1482+
14771483
// array equations
14781484
case (e1,e2,tt as DAE.T_ARRAY(),_,_,initial_)
14791485
equation

0 commit comments

Comments
 (0)