From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 116046 invoked by alias); 28 Jul 2015 06:17:22 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 116002 invoked by uid 48); 28 Jul 2015 06:17:18 -0000 From: "kargl at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/67039] Documentation of pseudorandom number intrinsics is incorrect Date: Tue, 28 Jul 2015 06:17:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 5.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: trivial X-Bugzilla-Who: kargl at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2015-07/txt/msg02417.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67039 kargl at gcc dot gnu.org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |kargl at gcc dot gnu.org --- Comment #1 from kargl at gcc dot gnu.org --- (In reply to Brian Taylor from comment #0) > The gfortran documentation for the RANDOM_NUMBER and RANDOM_SEED subroutines > indicates that they are part of Fortran 95 and later. Well, they are part of Fortran 95 and later standards. > In fact, they were included in the Fortran 90 standard. Which is irrelevant as gfortran started life with the ambitions to be a Fortran 95 compiler. You'll note that there isn't a -std=f90 nor -std=f77 mode. In fact, you'll find all intrinsic procedures in the documentation that are listed in the Fortran 95 and that also appear Fortran 90 are listed as "Fortran 95 and later". > The gfortran documentation for the SRAND subroutine, a GNU extension, > includes in the "Notes" section the following: "The Fortran 2003 standard > specifies the intrinsic RANDOM_SEED to initialize the pseudo-random numbers > generator and RANDOM_NUMBER to generate pseudo-random numbers." The > reference here should be to the Fortran 90 standard, not 2003. Yeah, this could use some word smithing. It appears to be an attempt to discourage use of srand and rand in favor of the standard intrinsic subprograms. You also left out the most incorrect part of the documentation. gfortran uses 4 independent KISS generators, but implementation details should probably be removed here.