Changes between Initial Version and Version 1 of Ticket #4055
- Timestamp:
- 2016-09-26T05:48:28Z (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #4055 – Description
initial v1 5 5 parameter Integer n = 3; 6 6 Complex Z[n]; 7 constant Complex j = Complex(0 , 1);7 constant Complex j = Complex(0.0, 1.0); 8 8 algorithm 9 9 for i in 1:n loop 10 Z[i] := 1 + j;10 Z[i] := 1.0 + j; 11 11 end for; 12 12 end ComplexTest; … … 15 15 Here's the error message: 16 16 --------------------- 17 Complex Test.c: In function 'ComplexTest_eqFunction_2':18 Complex Test.c:143:7: warning: implicit declaration of function '$PZ$lB' [-Wimplicit-function-declaration]17 ComplexIssue.Test.c: In function 'ComplexIssue_Test_eqFunction_2': 18 ComplexIssue.Test.c:143:7: warning: implicit declaration of function '$PZ$lB' [-Wimplicit-function-declaration] 19 19 $PZ$lB(modelica_integer)$Pi$rB$Pre = tmp1._re; 20 20 ^ 21 Complex Test.c:143:14: error: expected expression before 'modelica_integer'21 ComplexIssue.Test.c:143:14: error: expected expression before 'modelica_integer' 22 22 $PZ$lB(modelica_integer)$Pi$rB$Pre = tmp1._re; 23 23 ^ 24 Complex Test.c:143:31: error: expected ';' before '$Pi$rB$Pre'24 ComplexIssue.Test.c:143:31: error: expected ';' before '$Pi$rB$Pre' 25 25 $PZ$lB(modelica_integer)$Pi$rB$Pre = tmp1._re; 26 26 ^ 27 Complex Test.c:144:14: error: expected expression before 'modelica_integer'27 ComplexIssue.Test.c:144:14: error: expected expression before 'modelica_integer' 28 28 $PZ$lB(modelica_integer)$Pi$rB$Pim = tmp1._im; 29 29 ^ 30 Complex Test.c:144:31: error: expected ';' before '$Pi$rB$Pim'30 ComplexIssue.Test.c:144:31: error: expected ';' before '$Pi$rB$Pim' 31 31 $PZ$lB(modelica_integer)$Pi$rB$Pim = tmp1._im; 32 33 32 ---------------------- 34 33 Tested with OpenModelica v1.11.0-dev-16-g6312752