From: A. Imran <me5@privacy.net>
Subject: Re: Odd error with access to derived types
Date: Sat, 16 Oct 2004 00:30:58 GMT
Date: 2004-10-16T00:30:58+00:00 [thread overview]
Message-ID: <drq0n0dlacjqiv7o14egont0dsg2ut8e37@4ax.com> (raw)
In-Reply-To: mailman.328.1097803715.390.comp.lang.ada@ada-france.org
Thank you for looking at the code. Here is the error message:
~> gnatmake test
gcc -c test.adb
parent-child.ads:10:09: "derived_access" conflicts with declaration at
line 6
gnatmake: "test.adb" compilation error
Relevant lines from parent-child.ads:
6 type derived_access is access all derived_type;
10 type derived_type is new base_type with record
11 dummy : boolean;
12 end record;
Complete code:
package parent is
task type a_task;
type base_type is abstract tagged limited record
dummy_task : a_task;
end record;
end parent;
package parent.child is
type derived_type is new base_type with private;
type derived_access is access all derived_type;
private
type derived_type is new base_type with record
dummy : boolean;
end record;
end parent.child;
The driver I use to compile the code:
with parent;
with parent.child;
procedure test is
begin
null;
end test;
next prev parent reply other threads:[~2004-10-16 0:30 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <feusm0hpbe5frsvljam7jbllqvftusc10v@4ax.com>
2004-10-14 19:17 ` Odd error with access to derived types Niklas Holsti
2004-10-15 1:28 ` Stephen Leake
2004-10-16 0:30 ` A. Imran [this message]
2004-10-16 12:58 ` Stephen Leake
2004-10-17 0:19 ` Brian May
2004-10-17 0:32 ` Stephen Leake
2004-10-17 12:14 ` A. Imran
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox