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

Commit

Permalink
Fix for #5111.
Browse files Browse the repository at this point in the history
- Add cases for enum_expression = cref and enum_expression =
  enum_expression in InstSection.instEqEquation2.

Belonging to [master]:
  - #2638
  - OpenModelica/OpenModelica-testsuite#1028
  • Loading branch information
perost authored and OpenModelica-Hudson committed Sep 10, 2018
1 parent 32ad2f5 commit baf7ba4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Compiler/FrontEnd/InstSection.mo
Original file line number Diff line number Diff line change
Expand Up @@ -1474,6 +1474,12 @@ algorithm
then
dae;

case (e1, DAE.CREF(componentRef = cr), DAE.T_ENUMERATION(), _, _, initial_)
then makeDaeDefine(cr, e1, source, initial_);

case (e1, e2, DAE.T_ENUMERATION(), _, _, initial_)
then makeDaeEquation(e1, e2, source, initial_);

// array equations
case (e1,e2,tt as DAE.T_ARRAY(),_,_,initial_)
equation
Expand Down

0 comments on commit baf7ba4

Please sign in to comment.