﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
1445	Stack overflow when importing function into same scope	Per Östlund	Per Östlund	"The following model causes a stack overflow:
{{{
package P
  import P2 = P;

  function f
    output Real r = 2.0;
  end f;

  constant Real c = P2.f();
end P;
}}}
The reason for this is that when instantiating the constant c it tries to look up the function P2.f. The lookup then tries to instantiate the package P when it looks for f, which causes it to instantiate c, etc."	defect	closed	high		Instantiation	trunk	fixed		Per Östlund
