This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/32987] GFortran FORMAT statement error
- From: "kargl at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 4 Aug 2007 16:26:04 -0000
- Subject: [Bug fortran/32987] GFortran FORMAT statement error
- References: <bug-32987-12095@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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