torsdag den 2. september 2021 kl. 19.33.00 UTC+2 skrev Dmitry A. Kazakov:
On 2021-09-02 19:08, Stephen Leake wrote:
Jesper Quorning <[email protected]> writes:
Is something odd going on here?
I did not expect Image_Odd1/2 to return floating point images.
Right, this looks like a compiler bug. LRM 3.5(13):
S'Last
S'Last denotes the upper bound of the range of S. The
value of this attribute is of the type of S.
But this is acting like Fpt'Last is universal_real.
No, it is this:
LRM 4.10 (40/5)
Had to go back to Ada 83 LRM to find a chapter 4.10.
"X'Image denotes the result of calling function S'Image with Arg being
X, where S is the nominal subtype of X."
LRM 3.5 (35-36) says about the same.
The question is what is the nominal subtype of Fpt'Last.
Well Image_Ok and Image_Odd_2 should both return Fpt'Last'Image so one of them must be bad.
Found LRM 3.5 (27.7/2) describing the image of a fixed point type.
Thanks for your responses. I will report the issue.
/Jesper
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)