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,25ab365b646cef74 X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!postnews.google.com!a1g2000hsb.googlegroups.com!not-for-mail From: Ludovic Brenta Newsgroups: comp.lang.ada Subject: Re: GNAT 4.2.3 Ubuntu reports weird compile error wrt Unchecked_Access Date: Sat, 16 Aug 2008 03:26:34 -0700 (PDT) Organization: http://groups.google.com Message-ID: <4a7dd648-fc2d-481c-9e51-8f63d961f01b@a1g2000hsb.googlegroups.com> References: <7053ea09-38cd-4e30-9827-a1384bafd190@p31g2000prf.googlegroups.com> NNTP-Posting-Host: 88.170.86.208 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: posting.google.com 1218882394 24473 127.0.0.1 (16 Aug 2008 10:26:34 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Sat, 16 Aug 2008 10:26:34 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: a1g2000hsb.googlegroups.com; posting-host=88.170.86.208; posting-account=pcLQNgkAAAD9TrXkhkIgiY6-MDtJjIlC User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.8.1.16) Gecko/20080702 Iceape/1.1.11 (Debian-1.1.11-1),gzip(gfe),gzip(gfe) Xref: g2news2.google.com comp.lang.ada:7359 Date: 2008-08-16T03:26:34-07:00 List-Id: Jerry wrote: > The whole purpose of using Unchecked_Access is to make this error go > away. It this a known problem on 4.2.3 Unbutu? Is it a compiler error? > Why does it work as expected on my 4.3 OS X, on 4.3.1-2 Debian > testing, but not 4.2.3 Ubuntu? Without more context I cannot tell for sure but I believe this is a compiler error in the sense that gnat-4.2 does not implement all the new (and more permissive) rules in Ada 2005 regarding anonymous access types. gnat-3.2 implements these rules. BTW, I've mentioned already that Ubuntu 8.04 has broken support for Ada. Better stick to Debian. -- Ludovic Brenta.