Opened 20 months ago

Last modified 20 months ago

#5588 assigned defect

Name lookup in flat tree from within record

Reported by: Jesper Mattsson Owned by: Jonathan Kämpe
Priority: major Milestone:
Component: Modelica/MiddleEnd Version: trunk
Keywords: Cc:

Description

Name lookup from withing records in flat tree searches only within the record, but a binding expression or attribute can point to a parameter or constant in the model. This does not seem to be a problem for compilation, but it trips up the sanity check, if active.

Example:

model A
  record B
    Real x;
  end B;

  model C
    parameter Real d = 2;
    record E = B(x(start = d));
    E e = E(time);
  end C;

  C c;
end A;

Change History (1)

comment:1 Changed 20 months ago by Jesper Mattsson

Owner: changed from jsten to Jonathan Kämpe
Status: newassigned
Note: See TracTickets for help on using tickets.