Skip to content

Commit

Permalink
- ALWAYS take the inner outer prefix from the original declaration no…
Browse files Browse the repository at this point in the history
…t the redeclare which HAS NO inner outer (the grammar doesn't permit it!)

  + this fixes some AVM models:
    Class C2M2L_Ext.C2M2L_Delivered_Component_Implementations.Drive_Line.Gearbox_90_Degree.Test_90degree_Gearbox_VU has 243 equation(s) and 243 variable(s).
    180 of these are trivial equation(s).


git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@13443 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
adrpo committed Oct 17, 2012
1 parent cffc395 commit 1bcee84
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Compiler/FrontEnd/Inst.mo
Original file line number Diff line number Diff line change
Expand Up @@ -7483,15 +7483,16 @@ algorithm
finalPrefix = finalPrefix,
replaceablePrefix = repl,
visibility = vis,
redeclarePrefix = redeclp,
innerOuter = io),
redeclarePrefix = redeclp),
typeSpec = t,modifications = mod,comment = comment,
attributes = at,condition = cond, info = info
)),rmod) :: rest))),
// adrpo: always take the inner outer from the component, not the redeclaration!!!!
SCode.COMPONENT(name = n2,
prefixes = SCode.PREFIXES(
finalPrefix = SCode.NOT_FINAL(),
replaceablePrefix = repl2 as SCode.REPLACEABLE((cc as SOME(_))),
innerOuter = io,
visibility = vis2),
typeSpec = t2,
modifications = old_mod),
Expand Down

0 comments on commit 1bcee84

Please sign in to comment.