Skip to content

Commit

Permalink
Fix for bug #1627:
Browse files Browse the repository at this point in the history
- Pass the subscripts correctly in elabCrefSubs so that the bounds checking
  works correctly on qualified subscripts.


git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@9956 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
perost committed Sep 28, 2011
1 parent 346ba57 commit 83222b1
Show file tree
Hide file tree
Showing 2 changed files with 146 additions and 122 deletions.
2 changes: 1 addition & 1 deletion Compiler/FrontEnd/Static.mo
Expand Up @@ -11297,7 +11297,7 @@ algorithm
(cache,ss_1,const1) = elabSubscriptsDims(cache,env, ss, sl, impl,crefPrefix,info);
//indexes = Expression.subscriptsInt(ss_1);
//crefPrefix = Prefix.prefixAdd(id,indexes,crefPrefix,vt);
crefPrefix = PrefixUtil.prefixAdd(id, {}, crefPrefix, vt,ClassInf.UNKNOWN(Absyn.IDENT("")));
crefPrefix = PrefixUtil.prefixAdd(id, ss_1, crefPrefix, vt,ClassInf.UNKNOWN(Absyn.IDENT("")));
(cache,cr,const2,hasZeroSizeDim) = elabCrefSubs(cache,env, subs,crefPrefix,impl,hasZeroSizeDim,info);
const = Types.constAnd(const1, const2);
then
Expand Down

0 comments on commit 83222b1

Please sign in to comment.