Changes between Initial Version and Version 1 of Ticket #3121


Ignore:
Timestamp:
2017-10-10T00:59:09Z (7 years ago)
Author:
Francesco Casella
Comment:

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.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #3121

    • Property Component *unknown*NF - New FrontEnd
    • Property Owner changed from somebody to Mahder Alemseged Gebremedhin
    • Property Status newassigned
    • Property Summary Stack overflow in operatorWrong behaviour of operator overloading example
  • Ticket #3121 – Description

    initial v1  
    1313      output BugRecord rec(x = b1.x + b2.x);
    1414    end '+';
     15  end BugRecord;
    1516
    16   end BugRecord;
    1717  BugRecord bugRecord = BugRecord(1) + BugRecord(0);
    1818end Bug;