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!news.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Ada.Strings.Fixed.Count raises Storage_Error Date: Mon, 27 Jun 2016 09:29:44 +0100 Organization: A noiseless patient Spider Message-ID: References: <57346ac8$0$4570$426a74cc@news.free.fr> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: mx02.eternal-september.org; posting-host="15bacc9237911e76a94be23536470c55"; logging-data="31959"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18+0BBZrqx6fDtv8CY+AY04ZaEJHPxvR2M=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (darwin) Cancel-Lock: sha1:p66Pd6U2+Pb4D69srsjZXUtTI8U= sha1:hINMuSBC69/xVHUO7SWsLE/Hcc8= Xref: news.eternal-september.org comp.lang.ada:30954 Date: 2016-06-27T09:29:44+01:00 List-Id: rieachus@comcast.net writes: > On Sunday, June 26, 2016 at 5:18:49 PM UTC-4, Victor Porton wrote: > >> Let's decide who of us will report the bug, so that the report won't happen >> to be duplicate? > > How about no one reports this non-existent error? This is a category > of problem that the ARG decided long ago should be considered > pathologies. The original case was a program that checked whether a > task returned by a function was Terminated. (The "correct" answer was > True, but the program was totally useless for anything other than > making compiler developers lives miserable.) > > A string which ends at Integer'Last is either huge enough to raise > Storage_Error anyway, or a clever compiler test that exists only to > make compiler developers lives miserable. I'm retired now, so I can > say that without insulting customers. And as Randy pointed out > anything is allowed to raise Storage_Error. That might not be user > friendly, but in this case (Strings ending at Integer'Last) no > sensible user is going to run into the problem. Who knows, AdaCore recently reported (in their blog) an obscure customer-reported problem in Text_IO which resulted in them doing a formal analysis and finding 2 further bugs ... if that approach continues, this obscure problem might get fixed.