OMEdit still crashes with this test case as of OpenModelica-v1.13.0-dev-63-g453e1c7-64bit. It doesn't crash with the new frontend -d=newInst
, but it still doesn't compile, because the code is probably wrong. If the reporter meant this model instead:
model Bug
operator record BugRecord
Integer x;
encapsulated operator function '+'
input BugRecord b1;
input BugRecord b2;
output BugRecord rec(x = b1.x + b2.x);
algorithm
annotation(Inline = true);
end '+';
end BugRecord;
BugRecord bugRecord = BugRecord(1) + BugRecord(0);
end Bug;
in fact we still have a problem even with the new front-end, which reports
[Bug: 15:3-15:52]: Expected BugRecord to be a function, but found class instead.
For the record, Dymola simulates this updated model correctly.