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.2 required=5.0 tests=BAYES_00,FROM_WORDY, INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,7d242658229865c X-Google-Attributes: gid103376,public From: "Nick Roberts" Subject: Re: Abstract Completion Question Date: 1999/03/06 Message-ID: <7bul10$if3$1@plug.news.pipex.net>#1/1 X-Deja-AN: 452306713 References: <7bmjrp$5u5$1@plug.news.pipex.net> <36DFF8BC.80853D3C@averstar.com> X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Organization: UUNET WorldCom server (post doesn't reflect views of UUNET WorldCom) Newsgroups: comp.lang.ada Date: 1999-03-06T00:00:00+00:00 List-Id: Well, the declaration of A in the example was a body which serves as a declaration, i.e. it is not a completion of a prior declaration. The addition of such a declaration causes GNAT to produce a program which runs normally, so I suspect a GNAT bug (and I have submitted a report to "report@gnat.com"). Assuming it is a bug, the workaround is presumably extremely simple: always include a prior declaration in these situations. ------------------------------------- Nick Roberts ------------------------------------- Tucker Taft wrote in message <36DFF8BC.80853D3C@averstar.com>... [...] |Perhaps you have run into a GNAT bug, or perhaps the Constraint_Error |is due to some other error in your program. From a language |point of view, the dispatching call should be going to the |body of A containing the Put_Line. [...] |-Tucker Taft stt@averstar.com http://www.averstar.com/~stt/ |Technical Director, Distributed IT Solutions (www.averstar.com/tools) |AverStar (formerly Intermetrics, Inc.) Burlington, MA USA