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=-2.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, MAILING_LIST_MULTI autolearn=unavailable autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,47bb539f07b52c30 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-11-15 19:38:57 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!newsfeeds.belnet.be!news.belnet.be!fr.usenet-edu.net!usenet-edu.net!enst!enst.fr!not-for-mail From: Wilhelm Spickermann Newsgroups: comp.lang.ada Subject: Re: How to get a compilation error Date: Thu, 15 Nov 2001 18:47:20 +0100 Organization: ENST, France Sender: comp.lang.ada-admin@ada.eu.org Message-ID: References: <3bf3d68c$1@pull.gecm.com> Reply-To: comp.lang.ada@ada.eu.org NNTP-Posting-Host: marvin.enst.fr Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: avanie.enst.fr 1005881936 6826 137.194.161.2 (16 Nov 2001 03:38:56 GMT) X-Complaints-To: usenet@enst.fr NNTP-Posting-Date: Fri, 16 Nov 2001 03:38:56 +0000 (UTC) To: comp.lang.ada@ada.eu.org Return-Path: In-Reply-To: <3bf3d68c$1@pull.gecm.com> X-Mailer: Mulberry/2.1.1 (Linux/x86) Content-Disposition: inline X-Sender: 0211750756-0001@t-dialin.net Errors-To: comp.lang.ada-admin@ada.eu.org X-BeenThere: comp.lang.ada@ada.eu.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: comp.lang.ada mail<->news gateway List-Unsubscribe: , List-Archive: Errors-To: comp.lang.ada-admin@ada.eu.org X-BeenThere: comp.lang.ada@ada.eu.org Xref: archiver1.google.com comp.lang.ada:16610 Date: 2001-11-15T18:47:20+01:00 --On Donnerstag, November 15, 2001 15:06:41 +0000 Martin Dowie wrote: > Could try: > > type A_Valid_Range is range 0 .. 0; > > My_Check : constant A_Valid_Range := > A_Valid_Range (96 mod (Integer'Min (32, > System.Max_Binary_Modulus / 2))); > > This will probably raise a warning rather than an error though. > Some compilers will let you specify that warning are to be > treated as errors. Yes, thank you. But it would be nice to be sure, that the guys using a package cannot get it to work, if it would fail in their environment. Wilhelm