gm2
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Issue with vector-constants


From: Gaius Mulley
Subject: Re: Issue with vector-constants
Date: Tue, 01 Aug 2023 01:50:47 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)

Michael Riedl <udo-michael.riedl@t-online.de> writes:

> Gaius,
>
> may I ask yout to have a look on the short sample below - I do not see
> why this should be syntactical not OK.
>
> Thanks
>
> Michael
>
>
> MODULE MayBeBuggy;
>
> TYPE  V5    = ARRAY [1.. 5] OF LONGREAL;
>
> CONST wg10  = V5{
> 6.66713443086881375935688098933317928579E-02,
> 1.49451349150580593145776339657697332403E-01,
> 2.19086362515982043995534934228163192459E-01,
> 2.69266719309996355091226921569469352860E-01,
> 2.95524224714752870173892994651338329421E-01
>               }; (* weights of the 10-point Gauss-Konrod rule *)
>
> CONST WG  = wg10;
>
> VAR   x   : LONGREAL;
> BEGIN
>       x := wg10[3]; (* OK     *)
>
>       x := WG[3];   (* NOT OK *)
> END MayBeBuggy.

Hi Michael,

many thanks for the bug report (and test code) - now fixed in the gcc git,

regards,
Gaius



reply via email to

[Prev in Thread] Current Thread [Next in Thread]