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,WEIRD_PORT autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,9b7d3a51d0d8b6ee X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!news.germany.com!feeder2.news.saunalahti.fi!fi.sn.net!newsfeed2.fi.sn.net!news.song.fi!not-for-mail Date: Wed, 26 Nov 2008 13:10:11 +0200 From: Niklas Holsti User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20060628 Debian/1.7.8-1sarge7.1 X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Extending discriminant types References: <20081115101632.5f98c596@cube.tz.axivion.com> <20081122011825.5354d1c1@cube.tz.axivion.com> <4928ecad$0$32681$9b4e6d93@newsspool2.arcor-online.net> <648Wk.39330$_Y1.32087@bgtnsc05-news.ops.worldnet.att.net> <492a7d07$0$30236$9b4e6d93@newsspool1.arcor-online.net> <8e021577-260a-44e1-b765-4d81f6ba89df@33g2000yqm.googlegroups.com> <492be08b$0$32676$9b4e6d93@newsspool2.arcor-online.net> <0xZWk.396391$TT4.276049@attbi_s22> <71304b75-71bc-4691-b511-69882bdc0fc3@a12g2000pro.googlegroups.com> <492c77a1$0$31347$9b4e6d93@newsspool4.arcor-online.net> <2ebc6a98-ebd9-4bfb-b69a-c313e9a9090a@w39g2000prb.googlegroups.com> <2T1Xk.451865$yE1.273979@attbi_s21> <20081126103846.3f9475ac@cube.tz.axivion.com> In-Reply-To: <20081126103846.3f9475ac@cube.tz.axivion.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Message-ID: <492d2062$0$25197$4f793bc4@news.tdc.fi> Organization: TDC Internet Services NNTP-Posting-Host: laku61.adsl.netsonic.fi X-Trace: 1227694178 news.tdc.fi 25197 81.17.205.61:32845 X-Complaints-To: abuse@tdcnet.fi Xref: g2news1.google.com comp.lang.ada:2803 Date: 2008-11-26T13:10:11+02:00 List-Id: Stefan Bellon wrote: > And indeed I am curious whether this bug exists in 3.15p or not. Yes, it seems to exist in 3.15p. Under Debian gnat 3.15p (gnatgcc 2.8.1), this package declaration compiles without error messages: generic type N is (<>); package U is type Count is new N range 0 .. N'Last; end U; Compiling an instantiation "is new U (N => Boolean)" gives error messages: m.adb:6:04: instantiation error at u.ads:4 m.adb:6:04: expected type "Standard.Boolean" m.adb:6:04: instantiation error at u.ads:4 m.adb:6:04: found type universal integer So at least the error is detected before run-time. -- Niklas Holsti Tidorum Ltd niklas holsti tidorum fi . @ .