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,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.107.70.21 with SMTP id t21mr1634936ioa.134.1519919630183; Thu, 01 Mar 2018 07:53:50 -0800 (PST) X-Received: by 10.157.14.124 with SMTP id n57mr110457otd.3.1519919630075; Thu, 01 Mar 2018 07:53:50 -0800 (PST) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!feeder.eternal-september.org!news.unit0.net!peer01.am4!peer.am4.highwinds-media.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!w142no1139644ita.0!news-out.google.com!a2ni3365ite.0!nntp.google.com!e10no564182itf.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Thu, 1 Mar 2018 07:53:49 -0800 (PST) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=149.32.224.39; posting-account=Qh2kiQoAAADpCLlhT_KTYoGO8dU3n4I6 NNTP-Posting-Host: 149.32.224.39 References: <39fc7bbf-77e8-4342-9af7-68cb5e9acb8a@googlegroups.com> <1e744a67-b2bf-437c-b503-8bd4c13da655@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <6028346a-466a-4f98-a57c-017e32852afa@googlegroups.com> Subject: Re: CONSTRAINT ERROR? access check failed From: Anh Vo Injection-Date: Thu, 01 Mar 2018 15:53:50 +0000 Content-Type: text/plain; charset="UTF-8" X-Received-Body-CRC: 403749275 X-Received-Bytes: 1992 Xref: reader02.eternal-september.org comp.lang.ada:50752 Date: 2018-03-01T07:53:49-08:00 List-Id: On Thursday, March 1, 2018 at 6:38:48 AM UTC-8, Mehdi Saada wrote: > Work finished ! Thank you. > But I would like to know why I get a warning at compile time with > type Link (Num : LINE_NUMBER := 0; Length : NATURAL := 0) is > record > NEXT : access LINK := null; > Line : String (1 .. Length) := (1..Length => ' '); > end record; > As if it could cause a stack overflow (was written as is). Yet I don't get at each compilation, surprisingly. I would prefer any compiler which gives warning when this code is compiled because Num is declared and assigned but not used. Anh Vo