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, 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-20 14:04:30 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!cpk-news-hub1.bbnplanet.com!cambridge1-snf1.gtei.net!news.gtei.net!bos-service1.ext.raytheon.com!dfw-service2.ext.raytheon.com.POSTED!not-for-mail Message-ID: <3B817A90.E35D563E@raytheon.com> From: Mark Johnson Reply-To: mark_h_johnson@raytheon.com X-Mailer: Mozilla 4.78 [en] (X11; U; Linux 2.4.6-3.1smp i686) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Compilation halts on GNAT 3-13p, RedHat6.2 Linux References: <8Fag7.2404$hc7.28970@news1.oke.nextra.no> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Mon, 20 Aug 2001 16:01:04 -0500 NNTP-Posting-Host: 192.27.48.41 X-Complaints-To: news@ext.ray.com X-Trace: dfw-service2.ext.raytheon.com 998341250 192.27.48.41 (Mon, 20 Aug 2001 16:00:50 CDT) NNTP-Posting-Date: Mon, 20 Aug 2001 16:00:50 CDT Organization: Raytheon Company Xref: archiver1.google.com comp.lang.ada:12141 Date: 2001-08-20T16:01:04-05:00 List-Id: Frank wrote: > Hi! > > The following code causes my compilation to halt (possibly loop forever). > It's beyond doubt that there are errors in the code, but the compilator > doesn't output anything. > My GNAT/gtk is recompiled with s-stratt.ad? for GLADE. > Could there be someone that could try to compile this on a un-GLADE GNAT > 3-13p installation, > and give me the result? Please also note which parameters you succeded with > . Hmm. Very odd. GNAT 3.15w goes into an infinite loop with the code you provided. You can compile the spec w/o any problems [other than the obvious errors]. gcc -c -O2 pa_tennis_engine.ads 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) 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) Once you did that & then comment it out, you still get the same set of error messages. Again, very odd - obviously you are exercising a piece of code that doesn't get tested very often :-). Needless to say - the code is broke. I was looking through the ARM E.2.3 & it looks like you are violating one of those restrictions. The errors above may give you a hint as to which one is being violated. --Mark PS: The last one of these I noticed & forwarded to ACT, they had a fix quite quickly. Of course, you need support to get the updated version in a timely manner.