Skip to content

Commit

Permalink
Fix for #2793:
Browse files Browse the repository at this point in the history
- Hack to handle messed up cref types when checking subscript bounds for connects.


git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@22066 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
perost committed Sep 1, 2014
1 parent 5bb2490 commit ed0d9db
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Compiler/FrontEnd/ComponentReference.mo
Expand Up @@ -3353,6 +3353,11 @@ algorithm
();

case ({}, _, _, _, _) then ();

// Cref types are sometimes messed up, and we might get a cref with
// subscripts but no dimensions here. That's usually fine, since the
// subscripts in those cases are generated by the compiler.
case (_, {}, _, _, _) then ();
end match;
end checkCrefSubscriptsBounds4;

Expand Down

0 comments on commit ed0d9db

Please sign in to comment.