Opened 12 years ago

Last modified 6 years ago

#2365 closed defect

Record cannot be set by constructor due to incompatible vector sizes — at Version 1

Reported by: c.schulze@… Owned by: somebody
Priority: high Milestone: 2.0.0
Component: New Instantiation Version: 1.9.0Beta
Keywords: Cc:

Description (last modified by Martin Sjölund)

model emptyVector1
  record R
    parameter Integer i = 2;
    parameter Real x[i]=zeros(i);
  end R;
  R r = R(i = 0);
end emptyVector1;

The call to the record constructor should enable the definition of r. But here the size of r.x is [2] and in the constructor [0]. -> incompatible sizes... (OMC r15030)

Change History (1)

comment:1 by Martin Sjölund, 12 years ago

Component: BackendFrontend
Description: modified (diff)
Owner: changed from probably noone to somebody
Note: See TracTickets for help on using tickets.