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,FREEMAIL_FROM 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-21 08:10:28 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!HSNX.atgi.net!newsfeed.sjc.globix.net!cyclone-sf.pbi.net!151.164.30.35!cyclone.swbell.net!bos-service1.ext.raytheon.com!dfw-service2.ext.raytheon.com.POSTED!not-for-mail From: Wes Groleau User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.1) Gecko/20020826 X-Accept-Language: en,es-MX,es,pt,fr-CA,fr MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: LRM:3.10.1(5), Can't reference incomplete type compile error References: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Message-ID: Date: Mon, 21 Oct 2002 10:10:27 -0500 NNTP-Posting-Host: 151.168.133.155 X-Complaints-To: news@ext.ray.com X-Trace: dfw-service2.ext.raytheon.com 1035213027 151.168.133.155 (Mon, 21 Oct 2002 10:10:27 CDT) NNTP-Posting-Date: Mon, 21 Oct 2002 10:10:27 CDT Organization: Raytheon Company Xref: archiver1.google.com comp.lang.ada:29986 Date: 2002-10-21T10:10:27-05:00 List-Id: > Error: line 24 col 48 LRM:3.10.1(5), Can't reference incomplete type > PRIVATE > type reservation; > type louer is access reservation; > > procedure allouer_res (ptr_reservation : in out louer ; > objet_reservation : in reservation); -- ERROR Since the structure of "reservation" is not defined, the compiler has no way of generating the calling code to prepare to pass one of them in to the procedure. If the compiler were to use ESP or looking elsewhere to find out the structure, it would be violating other rules in addition to the rule cited.