diff options
| author | fxcoudert <fxcoudert@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-03-25 07:04:27 +0000 |
|---|---|---|
| committer | fxcoudert <fxcoudert@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-03-25 07:04:27 +0000 |
| commit | 95f0757aff5c52c6441da5d06271eb026dcc3170 (patch) | |
| tree | 961e4b47dd7dbd9f60e655f4d3ba1794672ee5b9 | |
| parent | a2ef32b006a6f88ffde6c5c06e52d91c176f258d (diff) | |
| download | ppe42-gcc-95f0757aff5c52c6441da5d06271eb026dcc3170.tar.gz ppe42-gcc-95f0757aff5c52c6441da5d06271eb026dcc3170.zip | |
PR libfortran/15332
* io/format.c (parse_format_list): format node for colon edit
descriptor needs a repeat counter set to 1.
* gfortran.dg/pr15332.f: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@97036 138bc75d-0d04-0410-961f-82ee72b054a4
| -rw-r--r-- | gcc/testsuite/ChangeLog | 5 | ||||
| -rw-r--r-- | gcc/testsuite/gfortran.dg/pr15332.f | 12 | ||||
| -rw-r--r-- | libgfortran/ChangeLog | 6 | ||||
| -rw-r--r-- | libgfortran/io/format.c | 1 |
4 files changed, 24 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 985dee530ed..65f355a72dc 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2005-03-25 Francois-Xavier Coudert <coudert@clipper.ens.fr> + + PR libfortran/15332 + * gfortran.dg/pr15332.f: New test. + 2005-03-24 Dale Johannesen <dalej@apple.com> * gcc.dg/20020919-1.c: Fix for x86 Darwin. diff --git a/gcc/testsuite/gfortran.dg/pr15332.f b/gcc/testsuite/gfortran.dg/pr15332.f new file mode 100644 index 00000000000..238553533e2 --- /dev/null +++ b/gcc/testsuite/gfortran.dg/pr15332.f @@ -0,0 +1,12 @@ +! PR libfortran/15332 +! {do-do run} + character*12 c + + write (c,100) 0, 1 + if (c .ne. 'i = 0, j = 1') call abort + + write (c,100) 0 + if (c .ne. 'i = 0 ') call abort + + 100 format ('i = ',i1,:,', j = ',i1) + end diff --git a/libgfortran/ChangeLog b/libgfortran/ChangeLog index b952c547783..6517e03de13 100644 --- a/libgfortran/ChangeLog +++ b/libgfortran/ChangeLog @@ -1,3 +1,9 @@ +2005-03-25 Francois-Xavier Coudert <coudert@clipper.ens.fr> + + PR libfortran/15332 + * io/format.c (parse_format_list): format node for colon edit + descriptor needs a repeat counter set to 1. + 2005-02-24 Francois-Xavier Coudert <coudert@clipper.ens.fr> * config.h.in: Regenerate. diff --git a/libgfortran/io/format.c b/libgfortran/io/format.c index db5e0fe7372..f8d858af7a7 100644 --- a/libgfortran/io/format.c +++ b/libgfortran/io/format.c @@ -564,6 +564,7 @@ parse_format_list (void) case FMT_COLON: get_fnode (&head, &tail, FMT_COLON); + tail->repeat = 1; goto optional_comma; case FMT_SLASH: |

