Changes between Initial Version and Version 1 of Ticket #4055


Ignore:
Timestamp:
2016-09-26T05:48:28Z (8 years ago)
Author:
massimo ceraolo
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #4055 – Description

    initial v1  
    55  parameter Integer n = 3;
    66  Complex Z[n];
    7   constant Complex j = Complex(0, 1);
     7  constant Complex j = Complex(0.0, 1.0);
    88algorithm
    99  for i in 1:n loop
    10     Z[i] := 1 + j;
     10    Z[i] := 1.0 + j;
    1111  end for;
    1212end ComplexTest;
     
    1515Here's the error message:
    1616---------------------
    17 ComplexTest.c: In function 'ComplexTest_eqFunction_2':
    18 ComplexTest.c:143:7: warning: implicit declaration of function '$PZ$lB' [-Wimplicit-function-declaration]
     17ComplexIssue.Test.c: In function 'ComplexIssue_Test_eqFunction_2':
     18ComplexIssue.Test.c:143:7: warning: implicit declaration of function '$PZ$lB' [-Wimplicit-function-declaration]
    1919       $PZ$lB(modelica_integer)$Pi$rB$Pre = tmp1._re;
    2020       ^
    21 ComplexTest.c:143:14: error: expected expression before 'modelica_integer'
     21ComplexIssue.Test.c:143:14: error: expected expression before 'modelica_integer'
    2222       $PZ$lB(modelica_integer)$Pi$rB$Pre = tmp1._re;
    2323              ^
    24 ComplexTest.c:143:31: error: expected ';' before '$Pi$rB$Pre'
     24ComplexIssue.Test.c:143:31: error: expected ';' before '$Pi$rB$Pre'
    2525       $PZ$lB(modelica_integer)$Pi$rB$Pre = tmp1._re;
    2626                               ^
    27 ComplexTest.c:144:14: error: expected expression before 'modelica_integer'
     27ComplexIssue.Test.c:144:14: error: expected expression before 'modelica_integer'
    2828       $PZ$lB(modelica_integer)$Pi$rB$Pim = tmp1._im;
    2929              ^
    30 ComplexTest.c:144:31: error: expected ';' before '$Pi$rB$Pim'
     30ComplexIssue.Test.c:144:31: error: expected ';' before '$Pi$rB$Pim'
    3131       $PZ$lB(modelica_integer)$Pi$rB$Pim = tmp1._im;
    32 
    3332----------------------
    3433Tested with  OpenModelica v1.11.0-dev-16-g6312752