﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
2187	Evaluation of recursive functions during instantiation	Christoph Höger	somebody	"Hi all,

this model:

{{{
model Fak

  function f 
    input Real x;
    output Real y = if x < 1.0 then 1.0 else x * f(x-1);
  end f;

  Real x;
  Real y = 24;
  equation
  
  f(x) = y;

end Fak;
}}}

crashes during instantiation with a stackoverflow. Just two thoughts:

 * It seems like a bad idea in general to evaluate (recursive) functions at that time
 * At least omc should catch the stackoverflow and discard the attempted optimization IMO."	defect	closed	high	1.16.0	New Instantiation	trunk	fixed		
