﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
5690	NF crashes when flattening algorithm with inconsistent types	crupp@…	Per Östlund	"The following model crashes omc when flattening using -d=newInst.

{{{
model crashbug

function func
  input Real a[4];
  output Real[4] A;
algorithm
  // This crashes omc
  A := sum(a for i in 1:4);
  //
  // This does not crash omc
//  A := zeros(4);
//  for i in 1:4 loop
//    A := A + a;
//  end for;

end func;

  parameter Real a[4] = zeros(4);
  parameter Real A[4] = func(a);

end crashbug;
}}}

Tested using OpenModelica nightly v1.16.0-dev-3-g6f27fe142a. I'm not sure what is causing this, so please modify the ticket summary as needed."	defect	closed	critical	2.0.0	New Instantiation		fixed		
