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: sjoelund.se Owned by: perost
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 Changed 10 years ago by perost

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 Changed 10 years ago by perost

  • Resolution set to fixed
  • Status changed from new to closed

The indices have now been fixed in r23530.

comment:3 Changed 9 years ago by dietmarw

  • Milestone changed from Future to 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 Changed 7 years ago by sjoelund.se

  • Milestone changed from pre1.9.4 to 1.9.4

Removing the pre1.9.4 milestone in favor of 1.9.4.

Note: See TracTickets for help on using tickets.