public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/30964]  New: optional arguments to random_seed
@ 2007-02-25 21:16 tkoenig at gcc dot gnu dot org
  2007-02-26  0:14 ` [Bug fortran/30964] " kargl at gcc dot gnu dot org
                   ` (12 more replies)
  0 siblings, 13 replies; 14+ messages in thread
From: tkoenig at gcc dot gnu dot org @ 2007-02-25 21:16 UTC (permalink / raw)
  To: gcc-bugs

This is similar to PR 30865.  Any of the
arguments to random_seed may be specified if they
are optional arguments to the subroutine that is called.
The following is legal:

program trs
  implicit none
  integer :: size, ierr
  integer, allocatable, dimension(:) :: seed
  call test_random_seed(size)
  allocate(seed(size), stat=ierr)
  if (ierr /= 0) stop
  call test_random_seed(get=seed)
  call test_random_seed(put=seed)
contains
  subroutine test_random_seed(size, put, get)
    integer, optional :: size
    integer, dimension(:), optional :: put
    integer, dimension(:), optional :: get
    call random_seed(size, put, get)
  end subroutine test_random_seed
end program trs


-- 
           Summary: optional arguments to random_seed
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Keywords: rejects-valid
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: tkoenig at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30964


^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2007-08-12 20:46 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-02-25 21:16 [Bug fortran/30964] New: optional arguments to random_seed tkoenig at gcc dot gnu dot org
2007-02-26  0:14 ` [Bug fortran/30964] " kargl at gcc dot gnu dot org
2007-02-26 19:53 ` tkoenig at gcc dot gnu dot org
2007-03-03 10:36 ` fxcoudert at gcc dot gnu dot org
2007-03-15 12:59 ` fxcoudert at gcc dot gnu dot org
2007-05-21 14:21 ` fxcoudert at gcc dot gnu dot org
2007-05-22  8:24 ` fxcoudert at gcc dot gnu dot org
2007-05-28 20:48 ` fxcoudert at gcc dot gnu dot org
2007-08-11 23:22 ` fxcoudert at gcc dot gnu dot org
2007-08-11 23:33 ` fxcoudert at gcc dot gnu dot org
2007-08-12  0:16 ` fxcoudert at gcc dot gnu dot org
2007-08-12 16:41 ` fxcoudert at gcc dot gnu dot org
2007-08-12 20:45 ` fxcoudert at gcc dot gnu dot org
2007-08-12 20:46 ` fxcoudert at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).