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,c2f4e8127f6a9fd3,start X-Google-Attributes: gid103376,public From: dennison@telepath.com Subject: Renaming entries? Date: 1999/02/17 Message-ID: <7aelgt$2hr$1@nnrp1.dejanews.com>#1/1 X-Deja-AN: 445321137 X-Http-Proxy: 1.0 x3.dejanews.com:80 (Squid/1.1.22) for client 204.48.27.130 Organization: Deja News - The Leader in Internet Discussion X-Article-Creation-Date: Wed Feb 17 14:59:46 1999 GMT Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/4.5 [en] (WinNT; I) Date: 1999-02-17T00:00:00+00:00 List-Id: I don't really understand the error I'm getting, but I'm getting pretty much the same error message from 2 different compilers. What I'm trying to do is rename a task entry to be a procedure. The procedure is declared in the package spec, but the renaming is done in the body. I'm wondering if that's my problem. Does a renaming have to be a procedure *declaration*, or can it be the completion of a declaration? Here's a smallish code sample if you need to see it to answer my question. procedure Rename_Test is procedure Fred; task Foo is entry Jim; end Foo; procedure Fred renames Foo.Jim; task body Foo is begin accept Jim; end Foo; begin Fred; end Rename_Test; When compiled with gnat, I get rename_test.adb:15:19: not subtype conformant with declaration at line 8 rename_test.adb:15:19: prior declaration for "Fred" has convention "Ada" The same example compiles OK w/ GreenHills, but not if the declarations are moved to a package spec and body. In that case I also get an error referring to Fred having convention "Ada". Removing the "procedure Fred;" line cause gnat to compile it ok. T.E.D. -----------== Posted via Deja News, The Discussion Network ==---------- http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own