The following is a common vendor extension but to my knowledge not allowed up
to Fortran 2003 (and probably also Fortran 2008):

write(*,*), 'Hello'
read(*,*), a
end

gfortran -pedantic -std=f95 -Wall accepts simply accepts it.

ifort -stand f03  reports correctly:

fortcom: Warning: a.f90, line 1: Use of comma to separate io-access spec and
io_list is non_standard.
write(*,*), 'Hello'
----------^
fortcom: Warning: a.f90, line 2: Use of comma to separate io-access spec and
io_list is non_standard.
read(*,*), a
---------^


-- 
           Summary: Diagnose comma in "read()," and "write(),"
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Keywords: diagnostic
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: burnus at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33232

Reply via email to