Opened 10 years ago

Closed 10 years ago

Last modified 7 years ago

#3041 closed defect (fixed)

Implicit iteration range does not always work

Reported by: Henning Kiel 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 by Per Östlund, 10 years ago

Resolution: fixed
Status: newclosed

Fixed in r24504.

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