You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I believe that the following is a valid Fortran 2003 program:
program tsac
implicit nonewrite(*,"(A,'#')") [ character(len=6) ::'Rome', 'London' ]
end program
It uses an array constructor with a type specification, which in many cases is optional, but here is required due to the different lengths of 'Rome' and 'London'. You may find more information on this feature, introduced in Fortran 2003, in section 4.7 of the 2003 standard, in particular rule R466 (and related statements and constraints).
Compilers such as gfortran (8.2.0) and Intel Fortran (19.0.2.187) correctly compile it. However, the current master version of fortran-src (9af8a45) seems unable to parse the type specification of the array constructor:
I believe that the following is a valid Fortran 2003 program:
It uses an array constructor with a type specification, which in many cases is optional, but here is required due to the different lengths of
'Rome'
and'London'
. You may find more information on this feature, introduced in Fortran 2003, in section 4.7 of the 2003 standard, in particular rule R466 (and related statements and constraints).Compilers such as gfortran (8.2.0) and Intel Fortran (19.0.2.187) correctly compile it. However, the current master version of fortran-src (9af8a45) seems unable to parse the type specification of the array constructor:
The text was updated successfully, but these errors were encountered: