Hello,
doing some experiments with gfortran, I stumbled across the following
bug/regression with respect to g77:
consider these two files in a directory "test":
$ cat test/foo.f:
subroutine foo
include 'test.h'
end
$ cat test/test.h
c just a comment
Now, compiling with g77:
~ $ g77 -c test/foo.f
[works ok]
and with gfortran:
~ $ gfortran -c test/foo.f
Error: Can't open included file 'test.h'
If I compile within "test":
~/test $ gfortran -c foo.f
[works ok]
everything is fine.
But "include" is IMHO supposed to include from where the source file is located,
not only in the current directory?
Greetings,
Andreas
--
Summary: gfortran include problem (regression from g77)
Product: gcc
Version: 4.0.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: afranck at gmx dot de
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: i686-pc-cygwin
GCC host triplet: i686-pc-cygwin
GCC target triplet: i686-pc-cygwin
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20811