Commit 21d7d31f by Paul Thomas

re PR fortran/21432 (gfortran does not support printing of namelists)

2005-08-14 Paul Thomas  <pault@gcc.gnu.org>

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

From-SVN: r103085
parent 22f99b82
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>
......
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment