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-Google-Thread: a07f3367d7,a1265d36600e47dd,start X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.224.105.205 with SMTP id u13mr9857826qao.6.1351603569015; Tue, 30 Oct 2012 06:26:09 -0700 (PDT) Received: by 10.236.73.230 with SMTP id v66mr2143021yhd.9.1351603568930; Tue, 30 Oct 2012 06:26:08 -0700 (PDT) Path: gf5ni6293802qab.0!nntp.google.com!e17no13950810qar.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Tue, 30 Oct 2012 06:26:08 -0700 (PDT) Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=192.54.144.229; posting-account=uO_vzwoAAAAM7jhNZDkCkZpIghqP_5r8 NNTP-Posting-Host: 192.54.144.229 User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <6cc8e815-96c3-4a79-8bcd-e3aea906b889@googlegroups.com> Subject: Static bounds of loop - compilation error From: pascal.malaise@gmail.com Injection-Date: Tue, 30 Oct 2012 13:26:08 +0000 Content-Type: text/plain; charset=ISO-8859-1 Date: 2012-10-30T06:26:08-07:00 List-Id: Hi Ada experts, can anyone explain the following compilation errors: procedure T is type E is (A, B, C); subtype S is E range A .. B; X, Y : S; begin X := A; Y := B; for I in S range X .. Y loop case I is when A => null; when B => null; end case; end loop; end T; >> missing case value: "C" A similar example where S is a subtype of Positive leads to the same error and also: bounds of "I" are not static, alternatives must cover base type Indeed, X and Y are not static but the bounds of S are, and all the values of S are covered in the "case". So is it a bug? Thank you