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,3dfe18b59c34a51c X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-10-29 00:44:34 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!newsfeeds.belnet.be!news.belnet.be!isdnet!news.dotcom.fr!not-for-mail From: tgingold@pc204.ipricot.fr Newsgroups: comp.lang.ada Subject: Re: Relational Operators Date: 29 Oct 2001 08:44:31 GMT Organization: DotCom Network Message-ID: <9rj4tf$piq$1@st520.dotcom.fr> References: <3BD959E1.6C0AD647@hotmail.com> <69eC7.1430$xS6.1903@www.newsranger.com> NNTP-Posting-Host: tgingold.fr.ipricot.com User-Agent: slrn/0.9.7.2 (Win32) Xref: archiver1.google.com comp.lang.ada:15329 Date: 2001-10-29T08:44:31+00:00 List-Id: In article <69eC7.1430$xS6.1903@www.newsranger.com>, Ted Dennison wrote: > In article <3BD959E1.6C0AD647@hotmail.com>, Gordon Cooke says... >> >>Is this code legal? >> >>procedure Test is >> B : Boolean; >>begin >> B := True = True = True; >>end Test; > > Yes. It looks like you found a compiler bug in Gnat. Good job. :-) No, this code is not legal: according to LRM 4.4: relation ::= simple_expression [relational_operator simple_expression] | simple_expression [not] in range | simple_expression [not] in subtype_mark And LRM 4.5 says: relational_operator ::= = | /= | < | <= | > | >= Therefore, A = B = C is not legal. Tristan.