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,6d748e86b56b1269 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-01-27 20:42:14 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: wojtek@power.com.pl (Wojtek Narczynski) Newsgroups: comp.lang.ada Subject: GNAT / Aonix compiler incompatibility (Was: Prefix to 'ACCESS must either statically match... But why?) Date: 27 Jan 2003 20:42:14 -0800 Organization: http://groups.google.com/ Message-ID: <5ad0dd8a.0301272042.31e494fb@posting.google.com> References: <5ad0dd8a.0301251431.6370c6bc@posting.google.com> NNTP-Posting-Host: 212.160.20.107 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1043728934 25261 127.0.0.1 (28 Jan 2003 04:42:14 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 28 Jan 2003 04:42:14 GMT Xref: archiver1.google.com comp.lang.ada:33473 Date: 2003-01-28T04:42:14+00:00 List-Id: Vadim Godunko wrote in message news:... > > What's wrong? > Well, I don't know... Could you analyze this source for compliance with RM also, please? Regards, Wojtek Narczynski with ada.strings.Fixed; use ada.strings.Fixed; with Ada.Text_IO; use Ada.Text_IO; procedure tiny is -- Is this code valid ?! type string_access is access all string; subtype Len_Positive is Positive range 1 .. 20; subtype Len_String is String ( len_Positive ); subtype Len_String_Access is String_Access( Len_Positive ); LS : aliased Len_String := Len_String'Length * "*"; -- \/ This compiles with GNAT, but not with Aonix LSA : Len_String_Access := LS'access; begin -- \/ This compiles with GNAT, but not with Aonix Put_Line( LSA.all ); end tiny;