﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
2217	wrong code generation for array-elements	Lennart Ochel	Mahder Alemseged Gebremedhin	"{{{
model bug_2217
  Real d[5](start=-2:2);
equation
  when sample(0.5, 0.5) then
    d = pre(d) + fill(1.0, 5);
  end when;
end bug_2217;
}}}

Output:
{{{
    messages = ""Simulation failed for model: bug_2217
Error: Error building simulator. Build log: gcc-4.4   -falign-functions -march=native -mfpmath=sse -fPIC   -I\""/home/lochel/Documents/workspace/OpenModelica/trunk/build/include/omc\"" -I.    -c -o bug_2217.o bug_2217.c
bug_2217.c: In function ‘eqFunction_2’:
bug_2217.c:224: error: incompatible types when assigning to type ‘modelica_real’ from type ‘real_array’
bug_2217.c: In function ‘eqFunction_4’:
bug_2217.c:251: error: incompatible types when assigning to type ‘modelica_real’ from type ‘real_array’
bug_2217.c: In function ‘eqFunction_6’:
bug_2217.c:278: error: incompatible types when assigning to type ‘modelica_real’ from type ‘real_array’
bug_2217.c: In function ‘eqFunction_8’:
bug_2217.c:305: error: incompatible types when assigning to type ‘modelica_real’ from type ‘real_array’
bug_2217.c: In function ‘eqFunction_10’:
bug_2217.c:332: error: incompatible types when assigning to type ‘modelica_real’ from type ‘real_array’
make: *** [bug_2217.o] Error 1

"",
}}}"	defect	closed	high	1.9.0	Code Generation	trunk	fixed		Lennart Ochel
