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,f894972725d7613 X-Google-Attributes: gid103376,public From: Peter Amey Subject: Re: Ada strangeness or bug in Gnat? Date: 1996/11/07 Message-ID: #1/1 X-Deja-AN: 195041366 references: <328028AE.757F@direct.ca> content-type: TEXT/PLAIN; charset=US-ASCII organization: Praxis plc, U.K. mime-version: 1.0 newsgroups: comp.lang.ada Date: 1996-11-07T00:00:00+00:00 List-Id: > rodemann@mathematik.uni-ulm.de (Joerg Rodemann) writes: > > Sure? Soory, but i haven't got my RM at hand right now. But i tried this > > sample program with GNAT-3.05 on HPUX 10.10. It says: 1,2. That means the > > array elements were swapped --- correctly? > > The PA-RISC port of GNAT has some esoteric problems... (in the > backend, to be more precise) > > I wouldn't posit the correctness of my programs on the basis of the > results I get upon running it on this platform. > The whole point of the example is that _either_ result is allowed by a legal compiler which is why the Ada is considered erroneous (to use the Ada83 term). If you must, because of the importance of your software, avoid such problems entirely then you need to use additional development tools, such as the SPARK Examiner, which detect all instances of aliasing. Peter