This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/32987] GFortran FORMAT statement error



------- Comment #3 from kargl at gcc dot gnu dot org  2007-08-04 16:26 -------
Here's a patch that permits gfortran to accept your INVALID code.
Your code should be fixed, and I will activity oppose application
of this patch by others.


Index: format.c
===================================================================
--- format.c    (revision 127165)
+++ format.c    (working copy)
@@ -92,7 +92,7 @@
       fmt->format_string_len--;
       c = toupper (*fmt->format_string++);
     }
-  while (c == ' ' && !literal);
+  while ((c == ' ' || c == '\t') && !literal);

   return c;
 }


-- 


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]