﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
1671	Code generation fails	Martin Sjölund	Martin Sjölund	"From: http://www.openmodelica.org/index.php/forum/topic?id=481

This seems to have some issues either with alias elimination or some other stuff in generated code:
{{{record Value
 Real a;
end Value;

function Func 
  input Value v; 
  output Real a; 
algorithm 
  a := v.a; 
end Func; 

model Model 
  Value[1] values; 
  Value v; 
  Real a; 
equation  
  v = values[1]; 
  a = Func(values[1]);  // This leads to a compilation error 
  //a = Func(v);        // This does work 
end Model; 

model Test 
  Model m(values = values); 
  Value[1] values; 
equation 
  values[1].a = 1; 
end Test;}}}"	defect	closed	high				fixed		Martin Sjölund Jens Frenkel
