Opened 9 years ago

Closed 9 years ago

Last modified 6 years ago

#3041 closed defect (fixed)

Implicit iteration range does not always work

Reported by: hkiel Owned by: somebody
Priority: high Milestone: 1.9.4
Component: Frontend Version: trunk
Keywords: Cc:

Description

model implicit_range

Real x[3] = {1,2,3};
Real y[3];

equation

/* implicit range works here */
for i loop

y[i] = x[i];

end for;

/* explicit range works, of course */
y = {x[i] for i in 1:size(x,1)};

/* implicit range FAILS -> "Failed to elaborate expression" */
y = {x[i] for i};

end implicit_range;

Change History (3)

comment:1 Changed 9 years ago by perost

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

Fixed in r24504.

comment:2 Changed 8 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:3 Changed 6 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.