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, MSGID_RANDY autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,67b6ac0b061212bf X-Google-Attributes: gid103376,public From: Robert Dewar Subject: Re: GNAT Problem with variable length Arrays Date: 2000/03/22 Message-ID: <8barsh$5b6$1@nnrp1.deja.com>#1/1 X-Deja-AN: 600892441 References: <8b9v4e$cve1@dsit03.atlas.de> <87ya7bgzbu.fsf@deneb.cygnus.argh.org> X-Http-Proxy: 1.0 x36.deja.com:80 (Squid/1.1.22) for client 205.232.38.14 Organization: Deja.com - Before you buy. X-Article-Creation-Date: Wed Mar 22 16:20:53 2000 GMT X-MyDeja-Info: XMYDJUIDrobert_dewar Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/4.61 [en] (OS/2; I) Date: 2000-03-22T00:00:00+00:00 List-Id: In article <87ya7bgzbu.fsf@deneb.cygnus.argh.org>, Florian Weimer wrote: > "Torsten Leistikow" writes: > > > Is this an exspected behaviour of the compiler, or some kind of a bug? > > It's certainly a bug. Sometimes, when using a type before it is > actually declared, GNAT runs into an infinite loop. Another (quite > silly) example is: > > package type_test_problem is > > type Some_Type_Class is private; > > private > > type Some_Type_Class is new Some_Type_Class'Class; > > end type_test_problem; Well you should certainly report *any* bug to report@gnat.com, although this one must be due to using an old version of GNAT. test_problem.ads:7:09: full view of type must be definite subtype test_problem.ads:7:47: type cannot be used in its own definition Sent via Deja.com http://www.deja.com/ Before you buy.