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.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,436e4ce138981b82 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2004-03-10 17:38:31 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: dan@irvine.com (Dan Eilers) Newsgroups: comp.lang.ada Subject: Re: abstract sub programs overriding Date: 10 Mar 2004 17:38:31 -0800 Organization: http://groups.google.com Message-ID: References: <5f59677c.0403021101.4ac263d0@posting.google.com> <5f59677c.0403060718.3d6aa909@posting.google.com> <5f59677c.0403100751.4e908ad9@posting.google.com> NNTP-Posting-Host: 66.126.103.122 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1078969111 18930 127.0.0.1 (11 Mar 2004 01:38:31 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Thu, 11 Mar 2004 01:38:31 +0000 (UTC) Xref: archiver1.google.com comp.lang.ada:6222 Date: 2004-03-10T17:38:31-08:00 List-Id: evangeli@cnam.fr (Evangelista Sami) wrote in message news:<5f59677c.0403100751.4e908ad9@posting.google.com>... > so the conclusion is that it seems to be a gnat bug? > could you give me an advice to change this?  Yes, this seems to be a gnat bug. The problem is as you described earlier: >--in fact i have 5 levels : >--element -> decl -> type_decl -> discrete_type_decl -> enumerate_type_decl In my earlier post, I showed that the mere existence of the 5th level causes the problem, even if it is totally unused. However, if 5 levels are needed, it may be possible to avoid the problem by adding explicit type conversions. For example, in main, change Generate(El.all); to Generate(Type_Decl_Record(El.all)); -- Dan Eilers