From 21d7d31f71d4c4e16ee17ac547d3e0b6963e8ba1 Mon Sep 17 00:00:00 2001 From: Paul Thomas Date: Sun, 14 Aug 2005 21:43:12 +0000 Subject: re PR fortran/21432 (gfortran does not support printing of namelists) 2005-08-14 Paul Thomas PR fortran/21432. * gfortran.texi: Document PRINT namelist. From-SVN: r103085 --- gcc/fortran/ChangeLog | 5 +++++ gcc/fortran/gfortran.texi | 9 +++++++++ 2 files changed, 14 insertions(+) (limited to 'gcc/fortran') diff --git a/gcc/fortran/ChangeLog b/gcc/fortran/ChangeLog index 152ab00..d92bfd4 100644 --- a/gcc/fortran/ChangeLog +++ b/gcc/fortran/ChangeLog @@ -1,6 +1,11 @@ 2005-08-14 Paul Thomas PR fortran/21432. + * gfortran.texi: Document PRINT namelist. + +2005-08-14 Paul Thomas + + PR fortran/21432. * io.c (match_io): Add code to implement PRINT namelist. 2005-08-14 Canqun Yang diff --git a/gcc/fortran/gfortran.texi b/gcc/fortran/gfortran.texi index 30acb8f..7d26d5f 100644 --- a/gcc/fortran/gfortran.texi +++ b/gcc/fortran/gfortran.texi @@ -729,6 +729,15 @@ had been called: To aid this dialog, when input is from stdin, errors send their messages to stderr and execution continues, even if IOSTAT is set. +PRINT namelist is permitted. This causes an error if -std=f95 is used. +@smallexample +PROGRAM test_print + REAL, dimension (4) :: x = (/1.0, 2.0, 3.0, 4.0/) + NAMELIST /mynml/ x + PRINT mynml +END PROGRAM test_print +@end smallexample + @node X format descriptor @section X format descriptor @cindex X format descriptor -- cgit v1.1