Skip to content
This repository has been archived by the owner on May 18, 2019. It is now read-only.

Commit

Permalink
[NF] Disable conversion of bindings in TYPES_VAR.
Browse files Browse the repository at this point in the history
  - When converting variables to DAE versions we need to create TYPES_VARS for complex types.
    remove conversion of bindings in this types vars for now since it causes  infinte recurssions in some cases.

  - See a134d4e#commitcomment-28104629

Belonging to [master]:
  - #2285
  • Loading branch information
mahge authored and OpenModelica-Hudson committed Mar 16, 2018
1 parent 695f2e1 commit 3c4a094
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Compiler/NFFrontEnd/NFConvertDAE.mo
Expand Up @@ -1057,8 +1057,10 @@ algorithm
type_var := DAE.TYPES_VAR(InstNode.name(c)
, Component.Attributes.toDAE(Component.getAttributes(comp))
, Type.toDAE(Component.getType(comp))
, Binding.toDAE(Component.getBinding(comp))
,NONE()
// Fix recursive bindings and update this
// , Binding.toDAE(Component.getBinding(comp))
, DAE.UNBOUND()
, NONE()
);
type_vars := type_var::type_vars;
end for;
Expand Down

0 comments on commit 3c4a094

Please sign in to comment.