From: petter.fryklund@atero.se (Petter Fryklund)
Subject: Visibility problems with package instantiations.....
Date: 27 Nov 2003 07:42:40 -0800
Date: 2003-11-27T07:42:40-08:00 [thread overview]
Message-ID: <95234e08.0311270742.631b1228@posting.google.com> (raw)
We have the following:
generic
type A is mod (<>);
type B is mod (<>);
package Gen_0 is
type C is
record
AA : A;
BB : B;
end record;
end Gen_0;
with Gen_0;
generic
with package Inst_0 is new Gen_0 (<>);
package Gen_1 is
procedure X (P1 : Inst_0.C);
end Gen_1;
with Gen_0;
generic
with package Inst_0 is new Gen_0 (<>);
with package Inst_1 is new Gen_1 (<>);
package Gen_2 is
procedure X (P1 : Inst_0.C);
end Gen_2;
package body Gen_2 is
procedure X (P1 : Inst_0.C) is
begin
Inst_1 (P1); <---- visibility problems.
end X;
end Gen_2;
procedure Main is
package Inst_0 is new Gen_0 (Interfaces.Unsigned_16, Interfaces.Unsigned_16);
package Inst_1 is new Gen_1 (Inst_0);
package Inst_2 is new Gen_2 (Inst_0, Inst_1);
begin
Inst_2.X ...
Why?
next reply other threads:[~2003-11-27 15:42 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-11-27 15:42 Petter Fryklund [this message]
2003-11-27 16:33 ` Visibility problems with package instantiations Dmitry A. Kazakov
2003-11-28 11:23 ` Petter Fryklund
2003-11-28 13:17 ` Dmitry A. Kazakov
2003-12-01 7:45 ` Petter Fryklund
2003-12-01 8:58 ` Dmitry A. Kazakov
2003-12-01 16:31 ` Stephen Leake
2003-12-02 9:00 ` Dmitry A. Kazakov
2003-12-02 16:20 ` Stephen Leake
2003-12-03 8:37 ` Dmitry A. Kazakov
2003-12-03 18:09 ` Stephen Leake
2003-12-04 9:16 ` Dmitry A. Kazakov
2003-12-04 13:09 ` Stephen Leake
2003-12-04 14:03 ` Dmitry A. Kazakov
2003-12-04 19:24 ` Randy Brukardt
2003-12-05 0:30 ` Stephen Leake
2003-12-05 2:58 ` Randy Brukardt
2003-12-05 14:04 ` Stephen Leake
2003-12-05 12:14 ` Jeff C,
2003-12-05 13:13 ` Arnaud Charlet
2003-12-05 20:52 ` Randy Brukardt
2003-12-05 21:10 ` Simon Wright
2003-12-02 17:07 ` Jeffrey Carter
2003-12-03 8:49 ` Dmitry A. Kazakov
2003-12-02 4:25 ` Randy Brukardt
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox