[PATCH, WWW-DOCS] Deprecate non-standard hexadecimal BOZ constants.

Tobias Burnus tobias@codesourcery.com
Wed Jan 15 17:04:00 GMT 2020


Hi Mark,

it is more than just 'X' – also B/O/Z when used as postfix ('AB'Z) are 
nonstandard as in general the use outside DATA and a handful of 
intrinsic functions. For instance,  print *, Z'ABC'  is also nonstandard 
and affected by -fallow-invalid-boz. (GCC < 10 silently accepted the 
latter.)

I also come up with a gcc-10/changes.html wording; however, I am sure 
that my wording should be tweaked as well.

See https://gcc.gnu.org/ml/gcc-patches/2020-01/msg00896.html — I 
additionally also modified the diagnostic and the documentation; 
hopefully, in a sensible way.

Thanks,

Tobias

On 1/15/20 3:50 PM, Mark Eggleston wrote:
> Add a note the the Fortran changes to the effect that non-standard BOZ 
> constants are deprecated.
>
> Is the wording OK?
>
> second attempt this time with attachment!
>
> -- 
> https://www.codethink.co.uk/privacy.html
>
>
> deprecated.diff
>
> diff --git a/htdocs/gcc-10/changes.html b/htdocs/gcc-10/changes.html
> index 8e72bd4..3e73cea 100644
> --- a/htdocs/gcc-10/changes.html
> +++ b/htdocs/gcc-10/changes.html
> @@ -269,6 +269,11 @@ a work-in-progress.</p>
>       can be used to disable inline argument packing.
>     </li>
>     <li>
> +    Deprecating non-standard hexadecimal BOZ constants. Hexadecimal BOZ using the
> +    'X' prefix or suffix e.g. X'ABC' or 'ABC'X will only be allowed with the
> +    -fallow-invalid-boz option.
> +  <li>
> +  <li>
>       Legacy extensions:
>       <ul>
>         <li>



More information about the Gcc-patches mailing list