Skip to content

Commit

Permalink
- Fixed lookup of components in constant class array instances.
Browse files Browse the repository at this point in the history
- Added test mofiles/RecordConstant3.


git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@8215 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
perost committed Mar 14, 2011
1 parent 6f22f48 commit b19e00f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Compiler/FrontEnd/Lookup.mo
Expand Up @@ -1237,10 +1237,10 @@ algorithm

// Lookup where the first identifier is a component.
case (cache, env, cr as DAE.CREF_QUAL(ident = id, identType = ety,
subscriptLst = {}, componentRef = cref), _, _)
subscriptLst = sb, componentRef = cref), _, _)
equation
(cache, attr, ty, bind, cnstForRange, splicedExpData, classEnv,
componentEnv, name) = lookupVarLocal(cache, env, DAE.CREF_IDENT(id, ety, {}));
componentEnv, name) = lookupVarLocal(cache, env, DAE.CREF_IDENT(id, ety, sb));
(cache, attr2, ty, bind, cnstForRange, splicedExpData, classEnv,
componentEnv, name) = lookupVarLocal(cache, componentEnv, cref);
attr = propagateVariability(attr2, attr);
Expand Down

0 comments on commit b19e00f

Please sign in to comment.