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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,4fb6ec6cd054de65 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-03-12 02:37:21 PST From: "Martin Dowie" Newsgroups: comp.lang.ada References: <3c8cc63b$1@pull.gecm.com> <3c8dcc9d$1@pull.gecm.com> Subject: Re: constrained subtypes Date: Tue, 12 Mar 2002 10:38:26 -0000 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 NNTP-Posting-Host: sg2c11210.sd.edinbr.gmav.gecm.com Message-ID: <3c8dda5e$1@pull.gecm.com> X-Trace: 12 Mar 2002 10:37:18 GMT, sg2c11210.sd.edinbr.gmav.gecm.com Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!dispose.news.demon.net!demon!btnet-peer0!btnet-feed5!btnet!newreader.ukcore.bt.net!pull.gecm.com!sg2c11210.sd.edinbr.gmav.gecm.com Xref: archiver1.google.com comp.lang.ada:21100 Date: 2002-03-12T10:38:26+00:00 List-Id: "George Stevens" wrote in message news:3c8dcc9d$1@pull.gecm.com... > Problem seemed to be in using: > > case (constrained_subtype) > > rather than: > > case constrained_subtype > > Removing the brackets sorted the problem. Not sure why this is a problem > for constrained subtypes, as the compilers cope fine for enums and (base) > integers. > > Sorry I didn't put the original code in my post, but was away from my build > machine, so was relying on my memory. Thanks for all reponses. GNAT 3.13p agrees with this one. Is this because it is an "parenthesized expression", the result of the expression being in terms of the parent type "Integer"? RM 4.4-ish?