Skip to content

Commit

Permalink
- fix expandCref for Records
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@12166 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
Jens Frenkel committed Jun 21, 2012
1 parent b57bced commit 5450e13
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Compiler/FrontEnd/ComponentReference.mo
Expand Up @@ -2406,6 +2406,18 @@ algorithm
then
crefs;

// this case is needed because there is an error somewhere destroying the array type
// A qualified cref with type complex.
case (DAE.CREF_QUAL(id, ty as DAE.T_COMPLEX(complexClassType=_), subs, cref),true)
equation
// Expand the rest of the cref.
crefs = expandCref_impl(cref,expandRecord);
// Append the head of this cref to all of the generated crefs.
crefs = List.map3r(crefs, makeCrefQual, id, ty, subs);
then
crefs;


// A qualified cref with no subscripts and scalar type.
case (DAE.CREF_QUAL(id, ty, {}, cref),_)
equation
Expand Down

0 comments on commit 5450e13

Please sign in to comment.