Skip to content

Commit

Permalink
- Fix r13427 also for constant elements in records
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@13428 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
sjoelund committed Oct 17, 2012
1 parent c88d76d commit 41fc6a0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Compiler/FrontEnd/Lookup.mo
Expand Up @@ -2126,7 +2126,7 @@ algorithm
SCode.PREFIXES(vis, redecl, f as SCode.FINAL(), io, repl),
SCode.ATTR(d,ct,prl,var,dir),tp,mod,comment,cond,info)),cmod) :: rest),_,_)
equation
(_,mod_1) = Mod.elabMod(Env.emptyCache(), env, InnerOuter.emptyInstHierarchy, Prefix.NOPRE(), mod, false, info);
(_,mod_1) = Mod.elabMod(Env.emptyCache(), env, InnerOuter.emptyInstHierarchy, Prefix.NOPRE(), mod, true, info);
mod_1 = Mod.merge(mods,mod_1,env,Prefix.NOPRE());
// adrpo: this was wrong, you won't find any id modification there!!!
// bjozac: This was right, you will find id modification unless modifers does not belong to component!
Expand All @@ -2153,7 +2153,7 @@ algorithm
SCode.PREFIXES(vis, redecl, f, io, repl),
SCode.ATTR(d,ct,prl,var as SCode.CONST(),dir),tp,mod,comment,cond,info)),cmod) :: rest),_,_)
equation
(_,mod_1) = Mod.elabMod(Env.emptyCache(), env, InnerOuter.emptyInstHierarchy, Prefix.NOPRE(), mod, false, info);
(_,mod_1) = Mod.elabMod(Env.emptyCache(), env, InnerOuter.emptyInstHierarchy, Prefix.NOPRE(), mod, true, info);
mod_1 = Mod.merge(mods,mod_1,env,Prefix.NOPRE());
// adrpo: this was wrong, you won't find any id modification there!!!
// bjozac: This was right, you will find id modification unless modifers does not belong to component!
Expand Down

0 comments on commit 41fc6a0

Please sign in to comment.