Patchwork [Fortran,committed] PR57114 correct intrinsic.texi (RANK) bug.

login
register
mail settings
Submitter Tobias Burnus
Date April 29, 2013, 6:07 p.m.
Message ID <517EB6E3.3030702@net-b.de>
Download mbox | patch
Permalink /patch/240429/
State New
Headers show

Comments

Tobias Burnus - April 29, 2013, 6:07 p.m.
Committed as obvious as Rev. 198429

Tobias

Patch

Index: gcc/fortran/ChangeLog
===================================================================
--- gcc/fortran/ChangeLog	(Revision 198428)
+++ gcc/fortran/ChangeLog	(Arbeitskopie)
@@ -1,5 +1,11 @@ 
 2013-04-28  Tobias Burnus  <burnus@net-b.de>
 
+	PR fortran/57114
+	* intrinsic.texi (RANK): Correct syntax description and
+	expected result.
+
+2013-04-28  Tobias Burnus  <burnus@net-b.de>
+
 	PR fortran/57093
 	* trans-types.c (gfc_get_element_type): Fix handling
 	of scalar coarrays of type character.
Index: gcc/fortran/intrinsic.texi
===================================================================
--- gcc/fortran/intrinsic.texi	(Revision 198428)
+++ gcc/fortran/intrinsic.texi	(Arbeitskopie)
@@ -10279,7 +10279,7 @@ 
 Inquiry function
 
 @item @emph{Syntax}:
-@code{RESULT = RANGE(A)}
+@code{RESULT = RANK(A)}
 
 @item @emph{Arguments}:
 @multitable @columnfractions .15 .70
@@ -10296,7 +10296,7 @@ 
   integer :: a
   real, allocatable :: b(:,:)
 
-  print *, rank(a), rank(b) ! Prints:  0  3
+  print *, rank(a), rank(b) ! Prints:  0  2
 end program test_rank
 @end smallexample