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

Jerry DeLisle <jvdelisle at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jvdelisle at gcc dot gnu.org

--- Comment #6 from Jerry DeLisle <jvdelisle at gcc dot gnu.org> ---
(In reply to Steve Kargl from comment #5)
> This patch fixes the problem, but I'm in an area of
> the compiler that I do not too well.  It might open
> gfortran to other problems.  Jerry, any comments?
> 
> Index: io.c
> ===================================================================
> --- io.c      (revision 257695)
> +++ io.c      (working copy)
> @@ -1012,8 +1012,7 @@ data_desc:
>         goto between_desc;
>  
>       default:
> -       error = unexpected_element;
> -       goto syntax;
> +       goto format_item_1;
>       }
>        break;

Hi Steve,

I think I prefer this patch, regression tested OK.

diff --git a/gcc/fortran/io.c b/gcc/fortran/io.c
index 9b7c2de16f4..d9f0fb1d4ac 100644
--- a/gcc/fortran/io.c
+++ b/gcc/fortran/io.c
@@ -985,6 +985,9 @@ data_desc:
        case FMT_COMMA:
          goto format_item;

+       case FMT_COLON:
+         goto format_item_1;
+
        case FMT_LPAREN:

   dtio_vlist:

Reply via email to