Commit f14b9067 by Francois-Xavier Coudert Committed by François-Xavier Coudert

re PR fortran/38273 (Cray pointers: Document that pointers cannot be function return values)

	PR fortran/38273
	* gfortran.texi: Document that Cray pointers cannot be function
	results.

	PR fortran/36234
	* gfortran.texi: Document lack of support for syntax
	"complex FUNCTION name*16()", and existence of alternative
	legacy syntax "complex*16 FUNCTION name()".

From-SVN: r160569
parent da12c997
2010-06-10 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
PR fortran/38273
* gfortran.texi: Document that Cray pointers cannot be function
results.
2010-06-10 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
PR fortran/36234
* gfortran.texi: Document lack of support for syntax
"complex FUNCTION name*16()", and existence of alternative
legacy syntax "complex*16 FUNCTION name()".
2010-06-10 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
PR fortran/43032
* intrinsic.texi (FLUSH): Note the difference between FLUSH and
POSIX's fsync(), and how to call the latter from Fortran code.
......
......@@ -1515,10 +1515,10 @@ to Cray pointers and pointees. Pointees may not have the
@code{ALLOCATABLE}, @code{INTENT}, @code{OPTIONAL}, @code{DUMMY},
@code{TARGET}, @code{INTRINSIC}, or @code{POINTER} attributes. Pointers
may not have the @code{DIMENSION}, @code{POINTER}, @code{TARGET},
@code{ALLOCATABLE}, @code{EXTERNAL}, or @code{INTRINSIC} attributes.
Pointees may not occur in more than one pointer statement. A pointee
cannot be a pointer. Pointees cannot occur in equivalence, common, or
data statements.
@code{ALLOCATABLE}, @code{EXTERNAL}, or @code{INTRINSIC} attributes, nor
may they be function results. Pointees may not occur in more than one
pointer statement. A pointee cannot be a pointer. Pointees cannot occur
in equivalence, common, or data statements.
A Cray pointer may also point to a function or a subroutine. For
example, the following excerpt is valid:
......@@ -1719,7 +1719,8 @@ code that uses them running with the GNU Fortran compiler.
@c * TYPE and ACCEPT I/O Statements::
@c * .XOR. operator::
@c * CARRIAGECONTROL, DEFAULTFILE, DISPOSE and RECORDTYPE I/O specifiers::
@c * Omitted arguments in procedure call:
@c * Omitted arguments in procedure call::
* Alternate complex function syntax::
@end menu
......@@ -1894,6 +1895,18 @@ c
@end smallexample
@node Alternate complex function syntax
@subsection Alternate complex function syntax
@cindex Complex function
Some Fortran compilers, including @command{g77}, let the user declare
complex functions with the syntax @code{COMPLEX FUNCTION name*16()}, as
well as @code{COMPLEX*16 FUNCTION name()}. Both are non-standard, legacy
extensions. @command{gfortran} accepts the latter form, which is more
common, but not the former.
@c ---------------------------------------------------------------------
@c Mixed-Language Programming
@c ---------------------------------------------------------------------
......
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