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-Thread: 103376,5b9a38a75a50e726 X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!postnews.google.com!y22g2000prd.googlegroups.com!not-for-mail From: Adam Beneschan Newsgroups: comp.lang.ada Subject: Re: Feature or Bug? 2#1111# shifted by 4 is 224 Date: Tue, 3 Jun 2008 10:56:13 -0700 (PDT) Organization: http://groups.google.com Message-ID: References: <20080602191145.1b75b1ee.tero.koskinen@iki.fi> <873anvk9a2.fsf@ludovic-brenta.org> NNTP-Posting-Host: 66.126.103.122 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: posting.google.com 1212515773 11507 127.0.0.1 (3 Jun 2008 17:56:13 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Tue, 3 Jun 2008 17:56:13 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: y22g2000prd.googlegroups.com; posting-host=66.126.103.122; posting-account=duW0ogkAAABjRdnxgLGXDfna0Gc6XqmQ User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.7.12) Gecko/20050922 Fedora/1.7.12-1.3.1,gzip(gfe),gzip(gfe) Xref: g2news1.google.com comp.lang.ada:548 Date: 2008-06-03T10:56:13-07:00 List-Id: On Jun 2, 5:51 pm, "Jeffrey R. Carter" wrote: > Dennis Hoppe wrote: > > > The same behaviour can be reproduced by the code I posted above. > > Again, if I compile my source mit the -gnato flag, the program > > compute the shift operation correct. > > With[out] -gnato and -fstack-check (and some would say -gnatE), GNAT is not an Ada > compiler. So how is that relevant? Without those flags, the compiler will violate Ada semantics in some specific and well-defined cases, but users can still rightly expect Ada semantics to be followed in every other case. -- Adam