re PR fortran/21432 (gfortran does not support printing of namelists)
authorPaul Thomas <pault@gcc.gnu.org>
Sun, 14 Aug 2005 21:43:12 +0000 (21:43 +0000)
committerPaul Thomas <pault@gcc.gnu.org>
Sun, 14 Aug 2005 21:43:12 +0000 (21:43 +0000)
2005-08-14 Paul Thomas  <pault@gcc.gnu.org>

PR fortran/21432.
* gfortran.texi: Document PRINT namelist.

From-SVN: r103085

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

index 152ab005eefd26e286796473e222a5a5254046ca..d92bfd42e9f379687223413425f63ba8cd59b18e 100644 (file)
@@ -1,3 +1,8 @@
+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.
index 30acb8f70c18cd71a56112bbb6320b060b13186f..7d26d5fba09d24ab02292d4f1ac8255a49c3636d 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