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,5c7d6dc1ca496e51 X-Google-Attributes: gid103376,public From: Juergen.Hoyng@ri.dasa.de Subject: Re: GNAT bug? Date: 1999/02/11 Message-ID: <79ui6e$mah$1@nnrp1.dejanews.com>#1/1 X-Deja-AN: 443177811 References: <79ptl3$jdp$1@nnrp1.dejanews.com> X-Http-Proxy: 1.0 x12.dejanews.com:80 (Squid/1.1.22) for client 149.243.232.3 Organization: Deja News - The Leader in Internet Discussion X-Article-Creation-Date: Thu Feb 11 12:24:52 1999 GMT Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/4.02 [en] (X11; I; SunOS 5.5 sun4m) Date: 1999-02-11T00:00:00+00:00 List-Id: > The program compiles without error in ObjectAda; submit a GNAT bug report. > > -- Stephe > I submitted a GNAT bug report yesterday. It seems, that GNAT does not handle derived types in combination with generic units correctly. Another example: with Unchecked_Deallocation; package String_Utils; is type String_Access is access String; procedure Free is new Unchecked_Deallocation (String, String_Access); end String_Utils; with String_Utils; procedure Main is type Derived_From_String_Access is new String_Utils.String_Access; X : Derived_From_String_Access; begin Free(X); end Main; main.adb:6:03: expected type "String_Access" defined at string_utils.ads:3 main.adb:6:03: found type "Derived_From_String_Access" defined at line 3 main.adb:6:03: expected type "Derived_From_String_Access" defined at line 3 main.adb:6:03: found type "String_Access" defined at string_utils.ads:3 It is a little surprising that nobody has found this bug in the past. Juergen Hoyng, RIO 62 | email : Juergen.Hoyng@ri.dasa.de DaimlerChrysler Aerospace AG | fax : +49 421 539 4529 Raumfahrt Infrastruktur | Postfach 286156 | voice : +49 421 539 5348 D-28361 Bremen | Germany -----------== Posted via Deja News, The Discussion Network ==---------- http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own