﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
1323	Array indexing with another array	Martin Sjölund	Martin Sjölund	"From Tom Short via openmodelicainterest:
Here is an example that does not work in OpenModelica:

{{{class ArrayTest
  Real a[4];
  Integer idx[2] = {2,4};
equation
  a[{1,3}] = {1,3};
  //  a[{2,4}] = {2,4};
  a[idx] = {2,4};
end ArrayTest;}}}

The error I get is given below. I get the same type of error for single- and two-dimensional arrays.
{{{Error: Index out of bounds. Adressing position: idx[1] and position idx[2], while array length is: 4
Error: Error occured while flattening model ArrayTest}}}"	defect	closed	high			1.6.0	fixed		Martin Sjölund
