Opened 7 years ago

Closed 7 years ago

#4761 closed defect (fixed)

Wrong typing in NF breaks generated code

Reported by: Francesco Casella Owned by: Per Östlund
Priority: high Milestone: 2.0.0
Component: New Instantiation Version:
Keywords: Cc:

Description (last modified by Francesco Casella)

Please consider Modelica.Blocks.Examples.Interaction1. The following error is obtained

Modelica_3.2.2_Modelica.Blocks.Examples.RealNetwork1.c:151:62: error: assigning to 'modelica_real' (aka 'double') from incompatible type 'modelica_metatype' (aka 'void *')
  data->localData[0]->realVars[5] /* minMax.yMin variable */ = tmpMeta[0];
                                                             ^ ~~~~~~~~~~

Apparently, the value assigned to the variable minMax.yMin has not been given the right type.

Change History (2)

comment:1 by Francesco Casella, 7 years ago

Description: modified (diff)

comment:2 by Francesco Casella, 7 years ago

Resolution: fixed
Status: newclosed

This problem seems to be solved now, though issue #4759 is still present.

Note: See TracTickets for help on using tickets.