gfortran rejects the following valid syntax:

$ cat common.f90
program main
  common /foo/ a, /bar/ b
  common /baz/ c /foobar/ d
end program main
$ gfortran common.f90
 In file common.f90:2

  common /foo/ a, /bar/ b
                1
Error: Syntax error in COMMON statement at (1)
 In file common.f90:3

  common /baz/ c /foobar/ d
               1
Error: Syntax error in COMMON statement at (1)

-- 
           Summary: multiple common blocks in a single line rejected
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: Thomas dot Koenig at online dot de
                CC: gcc-bugs at gcc dot gnu dot org


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

Reply via email to