From 5a97b4f907af6009cdbe1834c9576c374d3cf30d Mon Sep 17 00:00:00 2001 From: Jerry DeLisle Date: Fri, 6 Apr 2007 15:39:02 +0000 Subject: [PATCH] re PR fortran/31395 ([4.2 Only] Colon edit descriptor is ignored unless preceded by a comma or a slash) 2007-04-06 Jerry DeLisle PR libgfortran/31395 * io/format.c (parse_format_list): Fix parsing. From-SVN: r123620 --- libgfortran/ChangeLog | 5 +++++ libgfortran/io/format.c | 7 ++----- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/libgfortran/ChangeLog b/libgfortran/ChangeLog index 87ad838829ea..bb57e97d8ec2 100644 --- a/libgfortran/ChangeLog +++ b/libgfortran/ChangeLog @@ -1,3 +1,8 @@ +2007-04-06 Jerry DeLisle + + PR libgfortran/31395 + * io/format.c (parse_format_list): Fix parsing. + 2007-04-03 Francois-Xavier Coudert PR fortran/31304 diff --git a/libgfortran/io/format.c b/libgfortran/io/format.c index aa6c68bbf258..36ab89b63aa1 100644 --- a/libgfortran/io/format.c +++ b/libgfortran/io/format.c @@ -858,12 +858,9 @@ parse_format_list (st_parameter_dt *dtp) goto finished; case FMT_SLASH: - get_fnode (fmt, &head, &tail, FMT_SLASH); - tail->repeat = 1; - - /* Fall Through */ - case FMT_COLON: + get_fnode (fmt, &head, &tail, t); + tail->repeat = 1; goto optional_comma; case FMT_END: