From: wojtek@power.com.pl (Wojtek Narczynski)
Subject: GNAT / Aonix compiler incompatibility (Was: Prefix to 'ACCESS must either statically match... But why?)
Date: 27 Jan 2003 20:42:14 -0800
Date: 2003-01-28T04:42:14+00:00 [thread overview]
Message-ID: <5ad0dd8a.0301272042.31e494fb@posting.google.com> (raw)
In-Reply-To: mailman.1.1043696103.30820.comp.lang.ada@ada.eu.org
Vadim Godunko <vgodunko@vipmail.ru> wrote in message news:<mailman.1.1043696103.30820.comp.lang.ada@ada.eu.org>...
>
> 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;
prev parent reply other threads:[~2003-01-28 4:42 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-01-25 22:31 Prefix to 'ACCESS must either statically match... But why? Wojtek Narczynski
2003-01-26 9:57 ` Martin Krischik
2003-01-27 19:30 ` Vadim Godunko
2003-01-28 4:42 ` Wojtek Narczynski [this message]
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox