Skip to content

Commit

Permalink
[NF] Fix evaluation of call return type dimensions.
Browse files Browse the repository at this point in the history
  • Loading branch information
perost committed Jun 12, 2020
1 parent 1a78531 commit 1a676ea
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions OMCompiler/Compiler/NFFrontEnd/NFEvalConstants.mo
Expand Up @@ -173,6 +173,16 @@ algorithm
then
outExp;

// TODO: The return type of calls can have dimensions that reference
// function parameters, and thus can't be evaluated. This should be
// fixed so that the return type reference the input arguments instead.
case Expression.CALL()
algorithm
(outExp, outChanged) := Expression.mapFoldShallow(exp,
function evaluateExpTraverser(info = info), false);
then
outExp;

else
algorithm
(outExp, outChanged) := Expression.mapFoldShallow(exp,
Expand Down

0 comments on commit 1a676ea

Please sign in to comment.