From: Robert A Duff <bobduff@shell01.TheWorld.com>
Subject: Re: LRM:3.10.1(5), Can't reference incomplete type compile error
Date: Sat, 19 Oct 2002 15:49:44 GMT
Date: 2002-10-19T15:49:44+00:00 [thread overview]
Message-ID: <wccfzv2junb.fsf@shell01.TheWorld.com> (raw)
In-Reply-To: mailman.1035040502.4893.comp.lang.ada@ada.eu.org
"Dominic D'Apice" <dapiced@sympatico.ca> writes:
> Hi all, i got this compile error :
>
> Error: line 24 col 48 LRM:3.10.1(5), Can't reference incomplete type
>
> See the "error =>" flag, Can someone help me with that ? thanks
>
> Dominic
>
> ------------------------------------------------------------------------
>
> ADS
> ---
>
> PRIVATE
> type reservation;
> type louer is access reservation;
>
> procedure allouer_res (ptr_reservation : in out louer ;
> objet_reservation : in "error =>"reservation);
You can't refer to an incomplete type except via a pointer.
You might want:
Objet_Reservation : access Reservation);
Alternatively, you can move the record type into the private part,
before the declaration of allouer_res.
The exact rule is given in the RM paragraph mentioned in the error
message.
- Bob
next prev parent reply other threads:[~2002-10-19 15:49 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-10-19 15:14 LRM:3.10.1(5), Can't reference incomplete type compile error Dominic D'Apice
2002-10-19 15:49 ` Robert A Duff [this message]
2002-10-21 15:10 ` Wes Groleau
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox