OSDN Git Service

2005-12-16 Jerry DeLisle <jvdelisle@gcc.gnu.org>
authorjvdelisle <jvdelisle@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 16 Dec 2005 23:44:14 +0000 (23:44 +0000)
committerjvdelisle <jvdelisle@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 16 Dec 2005 23:44:14 +0000 (23:44 +0000)
PR fortran/24268
* io.c (format_lex): Allow whitespace within text of format specifier.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@108695 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/fortran/ChangeLog
gcc/fortran/io.c

index eb85853..bfc1078 100644 (file)
@@ -1,3 +1,8 @@
+2005-12-16  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
+
+       PR fortran/24268
+       * io.c (format_lex): Allow whitespace within text of format specifier.
+
 2005-12-16  Steven G. Kargl <kargls@comcast.net>
  
        PR fortran/25106
index 6d3d94b..23c1cb2 100644 (file)
@@ -233,7 +233,7 @@ format_lex (void)
           if (ISDIGIT (c))
             value = 10 * value + c - '0';
        }
-      while (ISDIGIT (c));
+      while (ISDIGIT (c) || gfc_is_whitespace(c));
 
       unget_char ();
       token = zflag ? FMT_ZERO : FMT_POSINT;