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=-0.3 required=5.0 tests=BAYES_00,FREEMAIL_FROM, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,5a5384e97f617987 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-08-21 07:47:47 PST Path: archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!opentransit.net!news.tele.dk!small.news.tele.dk!148.122.208.68!news2.oke.nextra.no!nextra.com!news1.oke.nextra.no.POSTED!not-for-mail Reply-To: "Frank" From: "Frank" Newsgroups: comp.lang.ada References: <8Fag7.2404$hc7.28970@news1.oke.nextra.no> <3B817A90.E35D563E@raytheon.com> Subject: Re: Compilation halts on GNAT 3-13p, RedHat6.2 Linux X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2615.200 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200 Message-ID: NNTP-Posting-Host: 130.67.135.142 X-Complaints-To: news-abuse@nextra.no NNTP-Posting-Date: Tue, 21 Aug 2001 16:46:56 MET DST Organization: Nextra Public Access X-Trace: readme.online.no 998405216 130.67.135.142 Date: Tue, 21 Aug 2001 16:46:02 +0200 Xref: archiver1.google.com comp.lang.ada:12174 Date: 2001-08-21T16:46:02+02:00 List-Id: Hi! Inspired by your hacking, I hacked some more:-) Regarding the result: > > If you generate a dummy procedure for Get_L_Racket such as... > procedure Get_L_Racket(P_Pos : out PA_POSITION.Type_Position) is > begin > null; > end; > you get the following error messages... > gcc -c -O2 pa_tennis_engine.adb > pa_tennis_engine.adb:20:45: prefix must statically denote a remote subprogram > > pa_tennis_engine.adb:20:45: not subtype conformant with declaration at > unknown location > pa_tennis_engine.adb:20:45: functions can only match functions > pa_tennis_engine.ads:6:01: "PA_POSITION" is undefined (more references > follow) I managed to recreate this error also, when I declared the procedure in the package body and _not_ declaring it in the package specification part. If I declare it in the spec part, the error "prefix must statically denote a remote subprogram" disappeared. It is in that way I have programmed it in my original source code, this is just a lobotomized version of a program that I am going to send to report@gnat.com to show them a easy example of my problem. > > Once you did that & then comment it out, you still get the same set of error > messages. > I am not quite sure I understand this paragraph, are you saying that you commented out a change in the source code, saved and the compilator still reported the errors from the commented code??? Regarding: >You can replace the assignment statement in the body w/ a null; & it compiles >[with errors]. > gcc -c -O2 pa_tennis_engine.adb > pa_tennis_engine.ads:6:01: "PA_POSITION" is undefined (more references >follow I have recreated this situation, further: My impression is that if I move the declaration of the dummy function _above_ the procedure REGISTER the compilation-hang disappeares. Or if there is a declaration of it in the spec part of the package the problem disappeares. Frank