Opened 13 years ago

Last modified 13 years ago

#1609 closed defect (fixed)

Iterators in if-equations fails

Reported by: Per Östlund Owned by: Per Östlund
Priority: high Milestone:
Component: Version:
Keywords: Cc: Per Östlund, Per Östlund

Description

The follow model fails because the compiler tries to constant evaluate the if-equation, but fails since the iterator isn't really constant.

model M
  Real x[2] = {if i == 0 then 1.0 else 2.0 for i in {0,1}};
end M;

Change History (0)

Note: See TracTickets for help on using tickets.