﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
3126	Compile failure for records with arrays	crupp@…	somebody	"The following model fails at compilation using r24357 (1.9.2 beta1). It works in r23420. The issue seems to be related to the calculation of the 3x3 array in the record. Similar functions with 3x1 arrays work fine.

{{{
package XSectionBug
  model XPropTest
    CrossSectionProperty prop;
  end XPropTest;

  record CrossSectionProperty
    parameter Real L = 1;
    parameter Real w = 0;
    parameter Real h = 0;
    parameter Real Itt[3, 3] = IttCalc(w = w, h = h, L = L) ""Inertia tensor"";
  end CrossSectionProperty;

  function IttCalc
    input Real h = 0.01;
    input Real w = 0.01;
    input Real L = 2.0;
    output Real Itt[3, 3] ""Moment of Inertia"";
  algorithm
    Itt := diagonal({w ^ 2 + h ^ 2, L ^ 2 + h ^ 2, L ^ 2 + w ^ 2} / 12);
  end IttCalc;
end XSectionBug;
}}}"	defect	closed	high	never	*unknown*	trunk	duplicate		
