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=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,23f57930ddc13e1c X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news4.google.com!out03b.usenetserver.com!news.usenetserver.com!in02.usenetserver.com!news.usenetserver.com!in03.usenetserver.com!news.usenetserver.com!pc02.usenetserver.com!news.flashnewsgroups.com-b7.4zTQh5tI3A!not-for-mail Newsgroups: comp.lang.ada Subject: Re: Missing Index Value in Array Aggregate References: <1i50iqb.14r2zb11w8eyc2N%csampson@inetworld.net> <1190822071.488118.316450@y42g2000hsy.googlegroups.com> <1i548co.yz2f6m45x0mwN%csampson@inetworld.net> From: Stephen Leake Date: Fri, 28 Sep 2007 06:05:11 -0400 Message-ID: User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/22.1 (windows-nt) Cancel-Lock: sha1:NxpsogYI9xT9MguD5BjAy6SdvUw= MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Complaints-To: abuse@flashnewsgroups.com Organization: FlashNewsgroups.com X-Trace: 56b0146fcd1d6e05e48ed12939 Xref: g2news2.google.com comp.lang.ada:2184 Date: 2007-09-28T06:05:11-04:00 List-Id: csampson@inetworld.net (Charles H. Sampson) writes: > I should have given more detail of the context. > Although it's not relevant now, here it is: The aggregate > was the initial value of a constant array object, the type > of that object being an anonymous array type whose index > is a constrained enumeration type. My compiler did give > me the (proper) warning of a constraint error at run time. > Unfortunately, the warning was overlooked because the > compiler tends to put out a bunch of warnings of much > less value. What compiler? With GNAT, I have a policy to eliminate _all_ warnings by fixing the source code. Same with Gnu C, when I'm forced to use that. Doing so fixes bugs. Sometimes I have to resort to a compiler switch to suppress a warning, but very rarely. -- -- Stephe