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.9 required=5.0 tests=BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: GNAT bug with assertions Date: Sun, 12 Aug 2018 19:51:50 +0100 Organization: A noiseless patient Spider Message-ID: References: <87y3dejlq9.fsf@adaheads.home> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: reader02.eternal-september.org; posting-host="18f4a9410ba7baf8498e0f89509f8f4d"; logging-data="15786"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18CIvsEEDzJDdu8ywT4yrAzXj7iETxlPVc=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (darwin) Cancel-Lock: sha1:/TT6+yr6hscTnRgeKuVy9sSOhUs= sha1:TuC+CFlv6SwMUZkqRl5aV06hkk8= Xref: reader02.eternal-september.org comp.lang.ada:54153 Date: 2018-08-12T19:51:50+01:00 List-Id: AdaMagica writes: > Thank you all for your time to think about this. > > I'll send it in to AdaCore. Hopefully it will be correted next year in > the public version. This is a somewhat artificial error, isn't it? function Maybe (X : Priv) return Subt; ... function Maybe (X : Priv) return Subt is (X); ... X := Maybe (C); -- C is -1 works as we would have expected.