From: David <d.combesdhenaux@gmail.com>
Subject: GNAT GPL 2011 bug ?
Date: Tue, 7 Feb 2012 04:05:14 -0800 (PST)
Date: 2012-02-07T04:05:14-08:00 [thread overview]
Message-ID: <4b574ffc-15f2-4c74-878c-1e9884849d1b@eb6g2000vbb.googlegroups.com> (raw)
Hi all,
The compiler accept the line mark by a arrow of the adb bellow and
refuse the line mark by "****". I think it must not accept the first
line to. What do you think ?
Thanks
------- ads --------
type I is interface;
procedure set (Self : out I;
Value : in Natural) is abstract;
type A is abstract tagged null record;
procedure set (Self : out A;
Value : in Natural) is abstract;
type Implement_I is new I with null record;
overriding procedure set (Self : out Implement_I;
Value : in Natural) is
null;
Null_Implement_I : constant Implement_I := Implement_I'(null
record);
type Implement_A is new A with null record;
overriding procedure set (Self : out Implement_A;
Value : in Natural) is null;
Null_Implement_A : constant Implement_A := Implement_A'(null
record);
procedure Test;
--- adb ---
procedure Test
is
L_I : constant test.I'Class := Null_Implement_I;
L_A : constant test.A'Class := Null_Implement_A;
begin
L_I.set (Value => 2); <--------
L_A.set (Value => 2); *******
end;
next reply other threads:[~2012-02-07 12:05 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-07 12:05 David [this message]
2012-02-07 15:50 ` GNAT GPL 2011 bug ? Adam Beneschan
2012-02-07 16:01 ` Adam Beneschan
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox