This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/32059] New: include directives don't work with absolute pathnames
- From: "Catherine dot M dot Moroney at jpl dot nasa dot gov" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 23 May 2007 19:07:10 -0000
- Subject: [Bug fortran/32059] New: include directives don't work with absolute pathnames
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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