https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101399

kargl at gcc dot gnu.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |kargl at gcc dot gnu.org
   Last reconfirmed|                            |2021-07-09
           Priority|P3                          |P5
             Status|UNCONFIRMED                 |NEW
           Severity|normal                      |enhancement
     Ever confirmed|0                           |1

--- Comment #3 from kargl at gcc dot gnu.org ---
diff --git a/gcc/fortran/io.c b/gcc/fortran/io.c
index 40cd76eb585..8c3f841098f 100644
--- a/gcc/fortran/io.c
+++ b/gcc/fortran/io.c
@@ -4226,7 +4226,10 @@ match_io (io_kind k)

       if (gfc_current_form == FORM_FREE)
        {
-         char c = gfc_peek_ascii_char ();
+         char c;
+
+         gfc_gobble_whitespace ();
+         c = gfc_peek_ascii_char ();
          if (c != ' ' && c != '*' && c != '\'' && c != '"')
            {
              m = MATCH_NO;


Personally, I think -Wtab should be the default behavior.
I lost that fight years ago.

PS: you'll need someone to commit this for you, or it 
will sit with the 10 to 20 patches I've put into PRs.

Reply via email to