gcc/libgfortran/io
Jerry DeLisle c4508d0ad7 re PR fortran/83191 (Writing a namelist with repeated complex numbers)
2017-12-03  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
            Dominique d'Humieres  <dominiq@lps.ens.fr>

        PR libgfortran/83191
        * io/transfer.c (list_formatted_read_scalar): Do not set
        namelist_mode bit here. (namelist_read): Likewise.
        (data_transfer_init): Clear the mode bit here.
        (finalize_transfer): Do set the mode bit just before any calls
        to namelist_read or namelist_write. It can now be referred to
        in complex_write.
        ^ io/write.c (write_complex): Suppress the leading blanks when
        namelist_mode bit is not set to 1.

        * gfortran.dg/namelist_95.f90: New test.

Co-Authored-By: Dominique d'Humieres <dominiq@lps.ens.fr>

From-SVN: r255365
2017-12-03 16:47:12 +00:00
..
close.c close.c: Fix white space in pointer declarations and comment formats where applicable. 2017-04-11 14:51:25 +00:00
fbuf.c close.c: Fix white space in pointer declarations and comment formats where applicable. 2017-04-11 14:51:25 +00:00
fbuf.h close.c: Fix white space in pointer declarations and comment formats where applicable. 2017-04-11 14:51:25 +00:00
file_pos.c re PR fortran/80741 ([Regression 7/8] DTIO wrong code causes incorrect behaviour of namelist READ) 2017-05-17 20:33:20 +00:00
format.c re PR libfortran/81938 (valgrind error message and heap-buffer-overflow on address sanitized libgfortran.so) 2017-10-27 17:50:22 +00:00
format.h Update copyright years. 2017-01-01 13:07:43 +01:00
inquire.c PR 53796 Improve INQUIRE(RECL=...) handling 2017-11-28 21:28:50 +02:00
intrinsics.c close.c: Fix white space in pointer declarations and comment formats where applicable. 2017-04-11 14:51:25 +00:00
io.h re PR fortran/83225 (runtime error in transfer.c) 2017-12-03 03:26:09 +00:00
list_read.c re PR fortran/83191 (Writing a namelist with repeated complex numbers) 2017-12-03 16:47:12 +00:00
lock.c close.c: Fix white space in pointer declarations and comment formats where applicable. 2017-04-11 14:51:25 +00:00
open.c PR 53796 Improve INQUIRE(RECL=...) handling 2017-11-28 21:28:50 +02:00
read.c close.c: Fix white space in pointer declarations and comment formats where applicable. 2017-04-11 14:51:25 +00:00
size_from_kind.c Update copyright years. 2017-01-01 13:07:43 +01:00
transfer128.c Update copyright years. 2017-01-01 13:07:43 +01:00
transfer.c re PR fortran/83191 (Writing a namelist with repeated complex numbers) 2017-12-03 16:47:12 +00:00
unit.c re PR fortran/83225 (runtime error in transfer.c) 2017-12-03 03:26:09 +00:00
unix.c unix.c (buf_write): Return early if there is nothing to write. 2017-07-24 10:42:23 +00:00
unix.h close.c: Fix white space in pointer declarations and comment formats where applicable. 2017-04-11 14:51:25 +00:00
write_float.def Update copyright years. 2017-01-01 13:07:43 +01:00
write.c re PR fortran/83191 (Writing a namelist with repeated complex numbers) 2017-12-03 16:47:12 +00:00