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: Array of records with default values not propagating to array Date: Sun, 04 Feb 2018 09:34:56 +0000 Organization: A noiseless patient Spider Message-ID: References: <43d8882f-04ee-46fa-8b71-43dbe512c604@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: reader02.eternal-september.org; posting-host="c2256924b4501ca1554b004487d68450"; logging-data="20059"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19SfxHhjWBgl9QYfDRanYUZWNcy1YKArqs=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (darwin) Cancel-Lock: sha1:lo7qMLfK3JPcxW3+EXt8c/os5Vs= sha1:qO9XY6KCojlOduHxKfLPltw+B0Q= Xref: reader02.eternal-september.org comp.lang.ada:50298 Date: 2018-02-04T09:34:56+00:00 List-Id: Bojan Bozovic writes: > The compiler does compile assignment of others => <> to uninitialized > record components as Mr. Simon Wright noticed above, I have reproduced > the bug both with GNAT 2017 GPL and FSF GNAT on Cygwin (6.4.0), > problem is I don't have GNAT Pro subscription for access to AdaCore > GNAT tracker, and I can't open an account on GCC Bugzilla either, as > my mail to administration is rejected and direct account creation is > disabled. We can only hope that powers that be take notice of > this. Thanks for the suggestions by the way. Actually this is not a bug, it's required behaviour as in ARM4.3.1(19.1)[1]. [1] http://www.ada-auth.org/standards/rm12_w_tc1/html/RM-4-3-1.html#p19.1