﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
5657	when not allowed inside for in algorithm although specification does not prohibit this	anonymous	Per Östlund	"Model foo below does not compile
-------------------------------------

model foo
  parameter Real[:] inter_arrival_time={1,2};
  discrete Real qlen[2](each start=0);
  Boolean iLoad_taken[2]={sin(time)>0,sin(2*time)>0};
  
  algorithm
    for i in 1:2 loop
        when sample(0,inter_arrival_time[i]) then
             qlen[i] := qlen[i]+1;
        end when;
        when change(iLoad_taken[i]) then
             qlen[i] := qlen[i]-1;
        end when;
    end for;
      
end foo;"	defect	closed	high	Future	New Instantiation		invalid		
