﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
2699	wrong instantiation for algorithms with loops and array indexing	Lennart Ochel	Mahder Alemseged Gebremedhin	"Please, check the following model:
{{{#!mo
model test
  record foo
    goo f[2];
  end foo;

  record goo
    Real g;
  end goo;

    foo f;
algorithm
  for i in 1:2 loop
      f.f[i].g := time;
    end for;
end test;
}}}

Instantiation produces the following output:
{{{#!mo
function test.foo \""Automatically generated record constructor for test.foo\""
  input test.goo[2] f;
  output foo res;
end test.foo;

function test.goo \""Automatically generated record constructor for test.goo\""
  input Real g;
  output goo res;
end test.goo;

class test
  Real f.f[1].g;
  Real f.f[2].g;
algorithm
  for i in 1:2 loop
    f.f.g[i] := time;
  end for;
end test;
}}}"	defect	closed	high	1.9.2	Frontend	trunk	fixed		Adrian Pop Martin Sjölund
