Opened 10 years ago
Closed 10 years ago
#2790 closed defect (fixed)
Fail or produce a warning when arrays are set to larger than their size
Reported by: | Owned by: | Per Östlund | |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | Frontend | Version: | trunk |
Keywords: | Cc: |
Description
The following model produces no error message at any point through the frontend:
model HelloWorld Real y[2,2](start={{1,2,3},{4,5,6}}); equation der(y)=-y; end HelloWorld;
it would be nice if the frontend at least produced a warning telling the user what it has done to make it valid.
Change History (2)
comment:1 by , 10 years ago
Owner: | changed from | to
---|---|
Status: | new → accepted |
comment:2 by , 10 years ago
Resolution: | → fixed |
---|---|
Status: | accepted → closed |
Note:
See TracTickets
for help on using tickets.
Fixed in r22061 (test case added in r22063). One exception is that we do not check quantity though, since Dymola does not do that for some reason. Because of that there's a type error in the MSL, see #1560.