When I compile the module listed below I get the following message:

k.f90:5.13:
    CALL sub2
            1
Error: PROCEDURE attribute conflicts with DIMENSION attribute in 'sub2' at (1)

It resembles Bug 24633. However, g95 and Lahey regard 24633 as an error but do
not regard this as an error.

MODULE ksbin2_aux_mod
REAL, DIMENSION(1) :: sub2
CONTAINS
  SUBROUTINE sub1
    CALL sub2
    CONTAINS 
      SUBROUTINE sub2
      END SUBROUTINE sub2
  END SUBROUTINE sub1
END MODULE ksbin2_aux_mod


-- 
           Summary: spurious error: PROCEDURE attribute conflicts with
                    DIMENSION attribute
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: michael dot a dot richmond at nasa dot gov


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

Reply via email to