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=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Received: by 2002:ac8:4688:: with SMTP id g8mr13773203qto.361.1574710272309; Mon, 25 Nov 2019 11:31:12 -0800 (PST) X-Received: by 2002:aca:3f87:: with SMTP id m129mr441844oia.30.1574710271854; Mon, 25 Nov 2019 11:31:11 -0800 (PST) Path: eternal-september.org!reader01.eternal-september.org!feeder.eternal-september.org!aioe.org!peer01.am4!peer.am4.highwinds-media.com!news.highwinds-media.com!tr2.eu1.usenetexpress.com!feeder.usenetexpress.com!tr1.iad1.usenetexpress.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!g89no9898800qtd.0!news-out.google.com!g53ni1226qtg.0!nntp.google.com!g89no9898797qtd.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Mon, 25 Nov 2019 11:31:11 -0800 (PST) In-Reply-To: <3ac08f1b-911b-4da5-a1ad-b32e84ee641b@googlegroups.com> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=85.168.13.206; posting-account=iV1hDQoAAADj-LMkLVCARAp8f-n9fYeB NNTP-Posting-Host: 85.168.13.206 References: <9bee64ac-42c4-495e-9ce6-69c306b8e3a5@googlegroups.com> <3ac08f1b-911b-4da5-a1ad-b32e84ee641b@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <86d2b164-519b-4308-ba62-3f518d4f8fd2@googlegroups.com> Subject: Re: yes another gnat bug (inherited tagged type as record field is too much for gnat??) From: gerrshapovalov@gmail.com Injection-Date: Mon, 25 Nov 2019 19:31:12 +0000 Content-Type: text/plain; charset="UTF-8" X-Received-Bytes: 2006 X-Received-Body-CRC: 3677197746 Xref: reader01.eternal-september.org comp.lang.ada:57606 Date: 2019-11-25T11:31:11-08:00 List-Id: A short update: After playing around some more I narrowed it down to gnat having some problem with discriminant handling. Basically type FRec is record f : List(5); end record R : FRec; -- R.f(1) := 1; -- still works (as in compiles *and* executes Ok) but type FRec (N : Positive) is record f : List(N); end record R : FRec(5); -- R.f(1) := 1; -- triggers the bug I have updated the "demo" (tests) package. ( https://github.com/gerr135/ada_composition , the ada_lists_tests dir) Now simply calling make should just build the (non-failing) tests. To trigger the bug run: make bug01