Opened 6 years ago

Closed 21 months ago

#2964 closed defect (fixed)

Records with parameter arrays with : size

Reported by: Jesper Mattsson Owned by: Jesper Mattsson
Priority: major Milestone: Pending
Component: Modelica/FrontEnd Version: trunk
Keywords: Cc:

Description

Records with parameter arrays declared with : size (or parameter records with such) are not handled properly. For some examples problem occur in circularity check, for some in scalarization.

Example:

model Test
  record A
    parameter Real a[:];
    parameter Real b[size(a, 1)];
    final parameter Real c[:] = b;
  end A;

  A d(a = {1,2}, b = {3,4});
  Real x[2] = d.c .* time;
end Test;

Change History (4)

comment:1 Changed 6 years ago by Tove Bergdahl

Milestone: FuturePending

comment:2 Changed 5 years ago by Jesper Mattsson

Still wrong as of r6721.

comment:3 Changed 2 years ago by Jesper Mattsson

Is this still wrong?

comment:4 Changed 21 months ago by Jesper Mattsson

Resolution: fixed
Status: newclosed

This has been fixed in other tickets.

Note: See TracTickets for help on using tickets.