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,45a9122ddf5fcf5 X-Google-Attributes: gid103376,public From: bobduff@world.std.com (Robert A Duff) Subject: Re: Rules for Representation of Subtypes Date: 1996/09/29 Message-ID: #1/1 X-Deja-AN: 185938971 references: organization: The World Public Access UNIX, Brookline, MA newsgroups: comp.lang.ada Date: 1996-09-29T00:00:00+00:00 List-Id: In article , Robert Dewar wrote: >If you are using GNAT, you need not worry about this. ... Well, *some* people might desire to write standard Ada, as opposed to the GNAT dialect. ;-) Anyway, are you saying that GNAT fails to optimize cases like this: X: Integer range 1..10 := 1; ... if X < 10 then -- must be true But what if the "..." contains an unchecked conversion that sets X to 11? - Bob