Opened 11 years ago
Closed 11 years ago
#2217 closed defect (fixed)
wrong code generation for array-elements
Reported by: | Lennart Ochel | Owned by: | Mahder Alemseged Gebremedhin |
---|---|---|---|
Priority: | high | Milestone: | 1.9.0 |
Component: | Code Generation | Version: | trunk |
Keywords: | Cc: | Lennart Ochel |
Description
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 ",
Change History (5)
comment:1 by , 11 years ago
comment:3 by , 11 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
comment:4 by , 11 years ago
Owner: | changed from | to
---|
comment:5 by , 11 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
This was not a code generation issue like the other array problems. It was a back-end issue. specifically with handling of cref types for pre() when dealing with initialization. If there are further issues that is where we should look.
Fixed in r16374.
Note:
See TracTickets
for help on using tickets.
model is located here: /testsuite/simulation/modelica/arrays/bug_2217.mos