Skip to content

Commit 4bb77db

Browse files
committed
- added case for SCode.EQ_NORETCALL in SCode.equationEqual2.
fixes duplicate elements not identical error in model: Modelica.Mechanics.MultiBody.Examples.Constraints.ConstrainPrismaticJoint however, the model seems to go in an infinite loop in the back-end. git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@13505 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
1 parent 4c52004 commit 4bb77db

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Compiler/FrontEnd/SCode.mo

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1504,6 +1504,12 @@ algorithm
15041504
true = Absyn.crefEqual(cr1,cr2);
15051505
then
15061506
true;
1507+
1508+
case (EQ_NORETCALL(exp = e1), EQ_NORETCALL(exp = e2))
1509+
equation
1510+
true = Absyn.expEqual(e1,e2);
1511+
then
1512+
true;
15071513

15081514
// otherwise false
15091515
case(_,_) then false;

0 commit comments

Comments
 (0)