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=0.2 required=5.0 tests=BAYES_00,INVALID_MSGID, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,689485f177fde666,start X-Google-Attributes: gid103376,public From: haug@localhost.ruhr.de (Haug Buerger) Subject: GNAT bug? Date: 1998/02/27 Message-ID: #1/1 X-Deja-AN: 329259448 Sender: haug@zesi.ruhr.de Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=iso-8859-1 Mime-Version: 1.0 Reply-To: haug@zesi.ruhr.de Newsgroups: comp.lang.ada Date: 1998-02-27T00:00:00+00:00 List-Id: Hi, i need some help to find out if my program has a fault or i'm to dump. I have a generic package with a unconstrained array and a pointer to it. I can allocate memory with new type(0..x). If i try to access pointer.all(0) i get a constraint error. What makes me wonder is that i can allocate with new type(-1..x) without warning, the array is of "natural range <>". The second thing that makes me wonder is that the code works outside of the generic. I get a warning there if i try -1..x. If somebody is willing to compile this very short code with another compiler and tell me the result i can clear this point and make a senseful bugreport if necessary. Haug For email use haug@zesi.ruhr.de !