public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/20811] New: gfortran include problem (regression from g77)
@ 2005-04-07 14:31 afranck at gmx dot de
  2005-04-07 16:45 ` [Bug fortran/20811] " pinskia at gcc dot gnu dot org
  2005-08-16 16:41 ` bsp at kithrup dot com
  0 siblings, 2 replies; 13+ messages in thread
From: afranck at gmx dot de @ 2005-04-07 14:31 UTC (permalink / raw)
  To: gcc-bugs

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


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2005-11-18 12:42 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-20811-1270@http.gcc.gnu.org/bugzilla/>
2005-11-01 21:24 ` [Bug fortran/20811] gfortran include problem (regression from g77) tobi at gcc dot gnu dot org
2005-11-04 17:22 ` mesmith dot 15507218 at bloglines dot com
2005-11-04 17:24 ` mesmith dot 15507218 at bloglines dot com
2005-11-04 17:30 ` mesmith dot 15507218 at bloglines dot com
2005-11-15 12:31 ` fxcoudert at gcc dot gnu dot org
2005-11-16  9:09 ` fxcoudert at gcc dot gnu dot org
2005-11-17 12:51 ` fxcoudert at gcc dot gnu dot org
2005-11-17 20:51 ` andreast at gcc dot gnu dot org
2005-11-17 21:30 ` andreast at gcc dot gnu dot org
2005-11-18 12:40 ` fxcoudert at gcc dot gnu dot org
2005-11-18 12:42 ` fxcoudert at gcc dot gnu dot org
2005-04-07 14:31 [Bug fortran/20811] New: " afranck at gmx dot de
2005-04-07 16:45 ` [Bug fortran/20811] " pinskia at gcc dot gnu dot org
2005-08-16 16:41 ` bsp at kithrup dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).