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=0.4 required=5.0 tests=BAYES_00,FORGED_MUA_MOZILLA autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,53dee61641b15f6c,start X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.68.190.104 with SMTP id gp8mr23615386pbc.4.1340221559161; Wed, 20 Jun 2012 12:45:59 -0700 (PDT) Path: l9ni10pbj.0!nntp.google.com!news2.google.com!news4.google.com!feeder1-2.proxad.net!proxad.net!feeder2-2.proxad.net!newsfeed.arcor.de!newsspool2.arcor-online.net!news.arcor.de.POSTED!not-for-mail Date: Wed, 20 Jun 2012 21:46:09 +0200 From: Georg Bauhaus User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:12.0) Gecko/20120428 Thunderbird/12.0.1 MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Bug or feature: representation makes aliasing with renaming declaration an error Message-ID: <4fe22876$0$9510$9b4e6d93@newsspool1.arcor-online.net> Organization: Arcor NNTP-Posting-Date: 20 Jun 2012 21:45:58 CEST NNTP-Posting-Host: 3bd2a793.newsspool1.arcor-online.net X-Trace: DXC=?`]PQW\O17Q1`E>oC;JXEZic==]BZ:af^4Fo<]lROoRQnkgeX?EC@@P2XbN1HO]fN]PCY\c7>ejVXGDLE\Q<7[^X_83WW@S?X9P X-Complaints-To: usenet-abuse@arcor.de Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Date: 2012-06-20T21:45:58+02:00 List-Id: Hi, Compiling: aliasing.ads (source file time stamp: 2012-06-20 19:41:48) 1. package Aliasing is 2. 3. type I is ('a', 'b', 'c'); 4. for I use (11, 22, 33); --! 5. 6. type T is range 1 .. 10; 7. type Ary is array (I) of aliased T; 8. type Ptr is access constant T; 9. 10. Vs : Ary; 11. Nm : T renames Vs('b'); 12. X : Ptr := Nm'Access; | >>> prefix of "Access" attribute must be aliased 13. 14. end Aliasing; 14 lines: 1 error The error goes away when line 4 is commented. Is this expected behavior or is my compiler confused?