﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
1556	Recursive external object causes stack overflow	Per Östlund	Per Östlund	"The following model causes a stack overflow, but should give an error message:
{{{
model Ext1
  class ExtO
    extends ExternalObject;
	
    function constructor ""Strlen""
      annotation(Include = ""#include <string.h>"");
      input String idName;
      output ExtO eo;
      external ""C"" eo = strlen(idName);
    end constructor;

    function destructor ""Printout""
      annotation(Include = ""#include <stdio.h>"");
      input ExtO id;
      external ""C"" printf(""strlen was: %d\n"", ExtO); // <-- Should be id and not Ext0!
    end destructor;
  end ExtO;

  ExtO ext = ExtO(""name"");
end Ext1;
}}}"	defect	closed	high	Future	Instantiation	trunk	fixed		Per Östlund
