Opened 8 years ago
Closed 8 years ago
#4190 closed defect (fixed)
When equations with array components as condition now fail
Reported by: | adrpo | Owned by: | sjoelund.se |
---|---|---|---|
Priority: | high | Milestone: | 1.12.0 |
Component: | Frontend | Version: | |
Keywords: | Cc: |
Description
After commit: de28a2253f035562f9ea3abaf51e450951da9869/OMCompiler things like:
Real x[10]; equation when x then end when;
generate an error. Array component references should be supported.
Because of this 5 models from ScalableTestSuite are failing:
https://test.openmodelica.org/libraries/ScalableTestSuite_Experimental/BuildModelRecursive.html
https://test.openmodelica.org/libraries/ScalableTestSuite_Experimental/files/ScalableTestSuite.Elementary.WhenEvents.Verification.ManyEventsManyConditions.err
I guess we don't have any test in the testsuite that checks for this and we should add one.
Change History (2)
comment:1 Changed 8 years ago by adrpo
- Owner changed from somebody to sjoelund.se
- Status changed from new to assigned
comment:2 Changed 8 years ago by adrpo
- Resolution set to fixed
- Status changed from assigned to closed
Fixed in 1171da/OMCompiler and added test in bd4996/OpenModelica-testsuite.