From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.5-pre1 (2020-06-20) on ip-172-31-74-118.ec2.internal X-Spam-Level: X-Spam-Status: No, score=0.0 required=3.0 tests=BAYES_40,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.5-pre1 X-Received: by 2002:ae9:f719:: with SMTP id s25mr12061469qkg.42.1617344122734; Thu, 01 Apr 2021 23:15:22 -0700 (PDT) X-Received: by 2002:a25:74ca:: with SMTP id p193mr16594453ybc.405.1617344122530; Thu, 01 Apr 2021 23:15:22 -0700 (PDT) Path: eternal-september.org!reader02.eternal-september.org!feeder1.feed.usenet.farm!feed.usenet.farm!tr3.eu1.usenetexpress.com!feeder.usenetexpress.com!tr2.iad1.usenetexpress.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Thu, 1 Apr 2021 23:15:22 -0700 (PDT) Injection-Info: google-groups.googlegroups.com; posting-host=84.209.88.37; posting-account=bPTmZAoAAAC_6HP9XLKB9aAAxBa6BuOR NNTP-Posting-Host: 84.209.88.37 User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <389f0f8a-707c-465a-94e5-6ecb22fbbd24n@googlegroups.com> Subject: Did I find a bug here? From: reinert Injection-Date: Fri, 02 Apr 2021 06:15:22 +0000 Content-Type: text/plain; charset="UTF-8" Xref: reader02.eternal-september.org comp.lang.ada:61725 List-Id: Assume this simple program: procedure test0 is type A_Type is (A,B,C); subtype A_sub_Type is A_Type with Static_Predicate => A_sub_Type in A | B; X : A_type := A; Y : A_sub_Type := A; begin case A_sub_Type(X) is when A => null; when B => null; when others => null; -- ???? Should the compiler complain here? end case; end test0; Should the compiler complain about "when others => null" ? My compiler does not (running debian 10 updated, gnat-8). reinert