﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
2532	Incorrect multilevel matrix slicing/indexing	Malte Lenz	Adrian Pop	"Instantiating Matrix:

{{{
model Vector
  Real x[2];
end Vector;

model Matrix
  Vector v[2];
equation
  v[:].x[:] = {{sin(time),cos(time)},{sin(time-0.5),cos(time-0.5)}};
end Matrix;
}}}

gives:

{{{
class Matrix
  Real v[1].x[1];
  Real v[1].x[2];
  Real v[2].x[1];
  Real v[2].x[2];
equation
  v[:].x[1,1] = sin(time);
  v[:].x[1,2] = cos(time);
  v[:].x[2,1] = sin(time + -0.5);
  v[:].x[2,2] = cos(time + -0.5);
end Matrix;
}}}

which is clearly not the correct indexing in the equations. This leads to a build/simulation failure."	defect	closed	high	1.9.1	Frontend	trunk	fixed		
