Opened 11 years ago

Closed 11 years ago

#2359 closed defect (fixed)

Dependency analysis is a bit wrong in some cases

Reported by: Adrian Pop Owned by: Adrian Pop
Priority: high Milestone: 1.9.0
Component: Frontend Version: trunk
Keywords: Cc: Per Östlund

Description

When we have things like:

package M
  replaceable package Medium = RefAirPartial;
  constant Real u = Medium.AirUtilities.Basic.Utilities.f(10);
end M;

model Blah
  package B = M(redeclare package Medium = RefAir);
  Real x = B.u;
end Blah;

Then dependency thinks nothing from RefAir is used so it gives an empty class.

Attachments (2)

blah.mo (1.2 KB ) - added by Adrian Pop 11 years ago.
blah.mos (99 bytes ) - added by Adrian Pop 11 years ago.

Download all attachments as: .zip

Change History (5)

by Adrian Pop, 11 years ago

Attachment: blah.mo added

by Adrian Pop, 11 years ago

Attachment: blah.mos added

comment:1 by Adrian Pop, 11 years ago

Owner: changed from somebody to Adrian Pop
Status: newaccepted

comment:2 by Adrian Pop, 11 years ago

Cc: Per Östlund added

I think I have a fix for this, running testsuite now.

comment:3 by Adrian Pop, 11 years ago

Resolution: fixed
Status: acceptedclosed

Fixed in r17306. There are still some issues left, i.e. if you use the same pattern with a component, but that I can fix later.

Note: See TracTickets for help on using tickets.