------- Comment #1 from burnus at gcc dot gnu dot org  2006-12-22 12:56 -------
Confirmed. I think the following patch should work. I'll take the bug next year
(if I don't forget). Otherwise, if someone wants to take it, feel free to do
so.

The problem is that only

  for include_path in include_paths
     try-to-open( include_path + filename )

is checked, never the filename itself.

Index: gcc/fortran/scanner.c
===================================================================
--- gcc/fortran/scanner.c       (Revision 120144)
+++ gcc/fortran/scanner.c       (Arbeitskopie)
@@ -199,6 +199,11 @@
   gfc_directorylist *p;
   FILE *f;

+  f = gfc_open_file (name);
+
+  if (f != NULL)
+    return f;
+
   for (p = list; p; p = p->next)
     {
       if (module && !p->use_for_modules)


-- 

burnus at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |burnus at gcc dot gnu dot
                   |                            |org
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
      Known to fail|                            |4.1.1 4.2.0 4.3.0
   Last reconfirmed|0000-00-00 00:00:00         |2006-12-22 12:56:06
               date|                            |


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

Reply via email to