﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
2289	instantiation of a very simple model failed	Lennart Ochel	somebody	"The following model fails during instantiation:
{{{#!mo
model foo
  parameter Integer N = 0;
  Real a[N];
algorithm
  if N > 0 then
    a[1] := 1.0;
    for i in 2:N loop
      a[i] := a[i-1] + 1.0;
    end for;
  end if;
end foo;
}}}

output:
{{{
Translation	14:16:49		0:0-0:0	Error occurred while flattening model foo
Translation	14:16:49		6:5-6:16	Variable a[1] not found in scope foo.
Translation	14:16:49		6:5-6:16	Illegal subscript [1] for dimensions 0 in component <NO COMPONENT>.
Scripting	14:16:49		0:0-0:0	Instantiation of foo failed.
}}}

This should be fixed as soon as possible, because it blocks the Petri net library."	defect	new	blocker	1.9.0	Frontend	trunk			
