2005-08-14 Paul Thomas <pault@gcc.gnu.org>
authorpault <pault@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 14 Aug 2005 21:43:12 +0000 (21:43 +0000)
committerpault <pault@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 14 Aug 2005 21:43:12 +0000 (21:43 +0000)
PR fortran/21432.
* gfortran.texi: Document PRINT namelist.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@103085 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/fortran/ChangeLog
gcc/fortran/gfortran.texi

index 152ab00..d92bfd4 100644 (file)
@@ -1,6 +1,11 @@
 2005-08-14 Paul Thomas  <pault@gcc.gnu.org>
 
        PR fortran/21432.
+       * gfortran.texi: Document PRINT namelist.
+
+2005-08-14 Paul Thomas  <pault@gcc.gnu.org>
+
+       PR fortran/21432.
        * io.c (match_io): Add code to implement PRINT namelist.
 
 2005-08-14  Canqun Yang  <canqun@nudt.edu.cn>
index 30acb8f..7d26d5f 100644 (file)
@@ -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