From: bobduff@world.std.com (Robert A Duff)
Subject: Re: Which compiler is correct??
Date: 1996/09/11
Date: 1996-09-11T00:00:00+00:00 [thread overview]
Message-ID: <DxKIDL.GFu@world.std.com> (raw)
In-Reply-To: 514uuu$d8i@uuneo.neosoft.com
In article <514uuu$d8i@uuneo.neosoft.com>,
>I can see maybe 4 choices: 1) GNAT is wrong, 2) ObjectAda is
>wrong, 3) the code is wrong, 4) I need to set some compile
>switches on one compiler or the other.
Looks like 1 and 3, to me. Please send a bug report to ACT --
apparently GNAT doesn't understand that choice parameters are constant.
>On a PC with GNAT 304a touted as being compiled for Windows and
>GNAT 301 on a NeXT/M68040 I get no errors.
>
>With Academic ObjectAda v7.0.171 I get 3 occurrences of the same error
>along with line and column numbers.
>
> LRM:6.4.15(5) If the mode is IN OUT or OUT, the actual
> shall be a name that denotes a variable.
It would have been easier if you had told me *which* line and column
numbers! ;-)
> exception
> when error_in_square_function:
> constraint_error => ada.exceptions.save_occurrence
> (error_in_square_function,error_list(1));
You've got the parameters backwards. Look up the spec of
Save_Occurrence. Note that error_in_square_function is constant (by
RM-1.2(9)), so you can't pass it to an in-out param.
> return 0;
Here, "raise;" would be more appropriate, at least in a real program.
- Bob
next prev parent reply other threads:[~1996-09-11 0:00 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-09-10 0:00 Which compiler is correct?? Robert B. Love
1996-09-10 0:00 ` Robert Dewar
1996-09-11 0:00 ` Robert B. Love
1996-09-10 0:00 ` Robert Dewar
1996-09-11 0:00 ` Robert A Duff [this message]
1996-09-12 0:00 ` Ken Cowan
1996-09-12 0:00 ` Ken Cowan
1996-09-13 0:00 ` Jon S Anthony
1996-09-11 0:00 ` Jon S Anthony
1996-09-12 0:00 ` Tucker Taft
-- strict thread matches above, loose matches on Subject: below --
1997-06-17 0:00 Which compiler is correct? Tom Moran
1997-06-18 0:00 ` Pascal Obry
1997-06-18 0:00 ` Tom Moran
1997-06-18 0:00 ` Robert A Duff
1997-06-18 0:00 ` John Woodruff
1997-06-19 0:00 ` Robert A Duff
1997-06-20 0:00 ` Jon S Anthony
1997-06-21 0:00 ` Robert A Duff
1997-06-26 0:00 ` Jon S Anthony
1997-06-19 0:00 ` Simon Wright
1997-06-20 0:00 ` Jon S Anthony
1997-06-21 0:00 ` Robert A Duff
1997-06-21 0:00 ` Robert A Duff
1997-06-21 0:00 ` Simon Wright
1997-06-23 0:00 ` Mats.Weber
1997-06-24 0:00 ` Jon S Anthony
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox