Unknown dimensions as function output generates bad code
Unknown dimensions as function output generates bad code. The problem is that we need to send in the array which we want to assign to. And this array might be an array with unknown dimensions. If it is, we should allocate and copy data. If it is an array of fixed dimensions, we should assert that the two dimensions are equal (but not abort the program as we currently do, crashing OMC). The function assigning the data does not know which case it is (might be 2 in the function and : in the caller, or : in the function and 2 in the caller).
Change History
(4)
Cc: |
Per Östlund Mahder Alemseged Gebremedhin Willi Braun added
|
Owner: |
changed from Lennart Ochel to Martin Sjölund
|
Status: |
new → accepted
|
Milestone: |
Future → 1.9.3
|
Resolution: |
→ fixed
|
Status: |
accepted → closed
|
Fixed in 3c606c7/OMCompiler