From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,b3fed146c92bc14 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-10-19 08:50:34 PST Newsgroups: comp.lang.ada Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!newsxfer.itd.umich.edu!bloom-beacon.mit.edu!nycmny1-snh1.gtei.net!bstnma1-snf1.gtei.net!news.gtei.net!news.mv.net!world!news From: Robert A Duff Subject: Re: LRM:3.10.1(5), Can't reference incomplete type compile error User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Sender: news@world.std.com (Mr Usenet Himself) Message-ID: Date: Sat, 19 Oct 2002 15:49:44 GMT Content-Type: text/plain; charset=us-ascii References: NNTP-Posting-Host: shell01.theworld.com Mime-Version: 1.0 Organization: The World Public Access UNIX, Brookline, MA Xref: archiver1.google.com comp.lang.ada:29950 Date: 2002-10-19T15:49:44+00:00 List-Id: "Dominic D'Apice" 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