The "include" directive does not accept absolute path names that start
with a "/".

For example (below).  If I use the absolute pathname, the compiler complains
that it cannot find the file.  Using the relative pathname works fine.

module io

contains
subroutine hi3
!include "/data/L2TC/cmm/linux_code/gfortran/hi.f90"  ! Does not work
include "../gfortran/hi.f90"                                              !
This works
 write(*,*) "inside hi3"
end subroutine hi3

end module io


PROGRAM te_inc_str

use io

call hi3

END PROGRAM te_inc_str


-- 
           Summary: include directives don't work with absolute pathnames
           Product: gcc
           Version: 4.1.1
            Status: UNCONFIRMED
          Severity: minor
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: Catherine dot M dot Moroney at jpl dot nasa dot gov


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

Reply via email to