[J3] (SC22WG5.6274) Fortran 90 and BOZ literals

Bill Long longb at cray.com
Tue Aug 11 07:23:21 EDT 2020


FWIW, in my printed copy of Fortran 90, all three of the “or” lines are the double-quote versions of the single-quote versions of the previous lines.  With the same syntax rule numbers (R408, R409, R410).  ISO/IEC 1539 : 1991 (E).

Cheers,
Bill


> On Aug 10, 2020, at 6:00 PM, Steve Lionel via J3 <j3 at mailman.j3-fortran.org> wrote:
> 
> I am working on a "Doctor Fortran" post about BOZ constants, and ran across something very odd in Fortran 90:
> 
> 
> R408 binary-constant is B ’ digit [ digit ] ... ’
>                      or B
> Constraint: digit must have one of the values 0 or 1.
> 
> R409 octal-constant is O ’ digit [ digit ] ... ’
>                     or O
> Constraint: digit must have one of the values 0 through 7.
> 
> R410 hex-constant is Z ’ hex-digit [ hex-digit ] ... ’
>                   or Z
> 
> The text never explains what a bare B, O or Z means. This is gone in Fortran 95 and I didn't see any mention of it in the three Fortran 90 corrigenda. What was this supposed to be? (If you get this on the J3 list, please reply to the WG5 list - thanks.)
> 
> Steve
> 

Bill Long                                                                       longb at hpe.com
Engineer/Master , Fortran Technical Support &   voice:  651-605-9024
Bioinformatics Software Development                      fax:  651-605-9143
Hewlett Packard Enterprise/ 2131 Lindau Lane/  Suite 1000/  Bloomington, MN  55425






More information about the J3 mailing list