Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
- Partial fix for assigning to only some function outputs when the function is constant evaluated


git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@18159 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
sjoelund committed Nov 15, 2013
1 parent 5afaf5d commit c9ee1aa
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Compiler/FrontEnd/Algorithm.mo
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,9 @@ algorithm
list<DAE.Properties> rest_lhs_prop, rest_rhs_prop;
DAE.Statement ass;
list<DAE.Statement> rest_ass;
case ({}, {}, {}, {}, _, _, _) then {};
case ({}, {}, _, _, _, _, _) then {}; /* rhs does not need to be empty */
case (DAE.CREF(componentRef=DAE.WILD()) :: rest_lhs, _ :: rest_lhs_prop, _ :: rest_rhs, _ :: rest_rhs_prop, _, _, _)
then makeAssignmentsList(rest_lhs, rest_lhs_prop, rest_rhs, rest_rhs_prop, attributes, initial_, source);
case (lhs :: rest_lhs, lhs_prop :: rest_lhs_prop,
rhs :: rest_rhs, rhs_prop :: rest_rhs_prop, _, _, _)
equation
Expand Down

0 comments on commit c9ee1aa

Please sign in to comment.