﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
5527	when max(boolean_array) then doesn't work - New Fronted	Domenico Nucera <domenico.nucera@…>	Per Östlund	"It seems to me that the construct - when max(array) then - doesn't work with the new frontend (the one activated by ticking ""Enable experimental new instantiation phase""). For example on my machine this basic model results in errors during C code translation

{{{
model when_max
	Boolean arr[1] = {time > 0.7};
algorithm
	when max(arr) then
	end when;
end  when_max;
}}}

In sending this I hope the when max() construct is Modelica legal. In case, I experienced that also a construct based on - if max() then - doesn't work, as in the example below


{{{
model if_max
	Boolean arr[1] = {time > 0.7};
	Integer n;
algorithm
	if max(arr) then
	n := n + 1;
	end if;
end if_max;
}}}

With reference to: #5439. Component: new instantiation, milestone: 2.0.0"	defect	closed	critical	2.0.0	New Instantiation	v1.14.0-dev-nightly	fixed	boolean max array	
