From: IVANOVIC%VAXR@CIRCUS.LLNL.GOV.UUCP
Subject: Re: A compiler Bug? or a bug in the LRM??
Date: 12 May 88 17:53:00 GMT [thread overview]
Date: Thu May 12 13:53:00 1988
Message-ID: <8805121751.AA26711@ajpo.sei.cmu.edu> (raw)
telesoft!keith@ucsd.edu (Keith Shillington @prodigal) writes:
The TeleSoft compiler on SUN compiles the program with no error.
I fully agree that 6.6:1 states that the program you have written is
indeed correct.
[...]
This code does not violate 6.4.1:3.
Here is the output of DEC's Ada compiler:
1 package A is
2 type T1 is new Integer;
3 procedure P1 (Target : out T1; source : in T1);
4 end A;
5
6 with A;
7 Package B is
8 subtype T1 is A.T1;
9 procedure P1 (Target : out T1; source : in T1)
10 renames A.P1;
11 end B;
12
13 with B; use B;
14 procedure C is
15 type T2 is new T1;
16 x : T2;
17 y : T1; -- B.T1
18 begin
19 P1(T1(x),y); -- B.P1( B.T1(x),y);
...............1.2
%ADAC-E-CONFDENOT, (1) Subtype T1 in B at line 8 is not the same as type T1 in A
at line 2, which is denoted in B at line 9 (from A at line 3) [LRM 6.3.1]
%ADAC-I-CONFWITHTYPEMAR, (2) Error detected during conformance check with type
mark of subprogram 'out' formal Target in B at line 9
20 end C;
next reply other threads:[~1988-05-12 17:53 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
1988-05-12 17:53 IVANOVIC%VAXR [this message]
-- strict thread matches above, loose matches on Subject: below --
1988-05-11 18:09 A compiler Bug? or a bug in the LRM?? Keith Shillington @prodigal
1988-05-05 16:16 Marc.Graham
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox