#2995 closed defect (fixed)
Boolean array equation expands in a bad way
Reported by: | Martin Sjölund | Owned by: | Per Östlund |
---|---|---|---|
Priority: | high | Milestone: | 1.9.4 |
Component: | Frontend | Version: | trunk |
Keywords: | Cc: |
Description
This boolean array equation expands in a bad way:
class booltest Boolean arr2[Boolean]; equation arr2 = {true, true}; equation assert(arr2[false] == false, "arr2[false] was not set correctly."); end booltest;
Becomes:
false = true; true = true;
(Only becomes the array dimensions; but these should be the subscripts of the variable)
Change History (4)
comment:1 by , 10 years ago
comment:2 by , 10 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
The indices have now been fixed in r23530.
comment:3 by , 9 years ago
Milestone: | Future → pre1.9.4 |
---|
It doesn't make sense to keep closed ticket in the "Future" milestone that were simply forgotten to assign to the correct milestone in the past.
comment:4 by , 7 years ago
Milestone: | pre1.9.4 → 1.9.4 |
---|
Removing the pre1.9.4 milestone in favor of 1.9.4.
Note:
See TracTickets
for help on using tickets.
Fixed in r23507. It's not entirely correct yet though, since you get e.g.
arr2[1] = true
instead ofarr2[false] = true
, but I will try to fix that too.