﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
3245	OMEdit crashes: When set record parameter in Function	arnesinnema@…	Per Östlund	"OMEdit crashes when a record parameter is set in a function (see code below), it looks very similar to bug #3082. 

{{{#!mo
model TestRecord 
  function setRecordFunction 
    output Real[3] y; 
  protected 
    Rec[3] x; 
  algorithm 
    for i in 1:3 loop 
      x[i].r := i; 
      y[i] := x[i].r; 
    end for; 
  end setRecordFunction; 

  record Rec 
    Real r; 
  end Rec; 

  model CallRecordFunction 
    Real[3] y; 
    //Real[4] y2; 
  equation 
    y = setRecordFunction(); 
    //y2 = setRecordFunction2(4); 
  end CallRecordFunction; 

  function setRecordFunction2 
    input Integer N; 
    output Real[N] y; 
  protected 
    Rec[N] x; 
  algorithm 
    for i in 1:N loop 
      x[i].r := i; 
      y[i] := x[i].r; 
    end for; 
  end setRecordFunction2; 
end TestRecord;
}}}"	defect	closed	high	1.9.4	Run-time	trunk	fixed	crash, record, function	
