Opened 10 years ago

Closed 10 years ago

Last modified 7 years ago

#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 Per Östlund, 10 years ago

Fixed in r23507. It's not entirely correct yet though, since you get e.g. arr2[1] = true instead of arr2[false] = true, but I will try to fix that too.

comment:2 by Per Östlund, 10 years ago

Resolution: fixed
Status: newclosed

The indices have now been fixed in r23530.

comment:3 by Dietmar Winkler, 9 years ago

Milestone: Futurepre1.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 Martin Sjölund, 7 years ago

Milestone: pre1.9.41.9.4

Removing the pre1.9.4 milestone in favor of 1.9.4.

Note: See TracTickets for help on using tickets.