﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
2289	instantiation of a very simple model failed	Lennart Ochel	Martin Sjölund	"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 | 0:0-0:0  | Error occurred while flattening model foo
Translation | 6:5-6:16 | Variable a[1] not found in scope foo.
Translation | 6:5-6:16 | Illegal subscript [1] for dimensions 0 in component <NO COMPONENT>.
Scripting   | 0:0-0:0  | Instantiation of foo failed.
}}}

This should be fixed as soon as possible, because it blocks the Petri net library."	defect	closed	blocker	1.9.0	Frontend	trunk	fixed		
