This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[patch, committed] PR84389
- From: Jerry DeLisle <jvdelisle at charter dot net>
- To: "fortran at gcc dot gnu dot org" <fortran at gcc dot gnu dot org>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Sun, 18 Feb 2018 11:23:42 -0800
- Subject: [patch, committed] PR84389
- Authentication-results: sourceware.org; auth=none
Committed the following as obvious and simple to trunk with new test case.
Author: jvdelisle
Date: Sun Feb 18 19:19:47 2018
New Revision: 257795
URL: https://gcc.gnu.org/viewcvs?rev=257795&root=gcc&view=rev
Log:
2018-02-18 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR fortran/84389
* io.c (check_format): Allow FMT_COLON.
* gfortran.dg/dtio_33.f90: New test.
Added:
trunk/gcc/testsuite/gfortran.dg/dtio_33.f90
Modified:
trunk/gcc/fortran/ChangeLog
trunk/gcc/fortran/io.c
trunk/gcc/testsuite/ChangeLog
The patch:
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: