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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,8ceb83dbf250e264 X-Google-Attributes: gid103376,public From: Florian Weimer Subject: Re: Problem with instantiating generic procedure Date: 1999/07/17 Message-ID: #1/1 X-Deja-AN: 502183051 References: <7mqfcq$9og$1@pegasus.csx.cam.ac.uk> Content-Type: text/plain; charset=us-ascii X-Complaints-To: abuse@cygnus.stuttgart.netsurf.de X-Trace: deneb.cygnus.stuttgart.netsurf.de 932238470 1496 192.168.0.1 (17 Jul 1999 19:07:50 GMT) Organization: Penguin on board Mime-Version: 1.0 User-Agent: Gnus/5.070095 (Pterodactyl Gnus v0.95) XEmacs/21.1 (20 Minutes to Nikko) NNTP-Posting-Date: 17 Jul 1999 19:07:50 GMT Newsgroups: comp.lang.ada Date: 1999-07-17T19:07:50+00:00 List-Id: mgk25@cl.cam.ac.uk (Markus Kuhn) writes: > Sorry, but after searching through the RM for almost an hour, I still > haven't figured out what I do wrong here and how I should fix this. ARM 6.1(20): | A subprogram_declaration or a generic_subprogram_declaration requires | a completion: a body, a renaming_declaration (see 8.5), or a pragma | Import (see B.1). A completion is not allowed for an | abstract_subprogram_declaration. I guess this means that an instance of a generic subprogram isn't allowed as a completion for a subprogram declaration. The obvious workaround is using a renaming declaration. Of course, the GNAT error message could be a bit more helpful. BTW: I stumbled across this problem and the solution while a solving the very first Ada exercise of my computer science course. ;)