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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,8e1f7d0039a97c6a X-Google-Attributes: gid103376,public From: Robert Dewar Subject: Re: Ambiguous character literals Date: 1999/04/28 Message-ID: <7g6qkp$rn9$1@nnrp1.dejanews.com>#1/1 X-Deja-AN: 471829540 References: <7fr2hr$sak$1@nnrp1.dejanews.com> X-Http-Proxy: 1.0 x15.dejanews.com:80 (Squid/1.1.22) for client 205.232.38.14 Organization: Deja News - The Leader in Internet Discussion X-Article-Creation-Date: Wed Apr 28 11:15:39 1999 GMT Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/4.04 [en] (OS/2; I) Date: 1999-04-28T00:00:00+00:00 List-Id: In article <7fr2hr$sak$1@nnrp1.dejanews.com>, adam@irvine.com wrote: > > > I think this program should fail to compile, but GNAT > 3.10 doesn't give any error messages. Am I interpreting > the RM correctly? Yes, you are, and both 3.10 and 3.11 versions of GNAT incorrectly allow this construction. Version 3.12 (which we hope to release shortly), will give: 1. procedure test1 is 2. type etype is ('d', 'c', 'b', 'a'); 3. type etype2 is ('a', 'b', 'c', 'd'); 4. b : boolean; 5. begin 6. b := ('d' < 'b'); | >>> ambiguous character literal >>> candidate interpretations: Character, Wide_Character >>> candidate interpretation: type "etype2" defined at line 3 >>> candidate interpretation: type "etype" defined at line 2 7. end test1; -----------== Posted via Deja News, The Discussion Network ==---------- http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own