public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/20481] New: RAN() should not be an intrinsic function
@ 2005-03-15 12:51 lei at il dot ibm dot com
  2005-03-15 12:53 ` [Bug fortran/20481] " lei at il dot ibm dot com
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: lei at il dot ibm dot com @ 2005-03-15 12:51 UTC (permalink / raw)
  To: gcc-bugs

(1) This example compiles with ibm xlf compiler, and (2) I could not
find any reference to RAN intrinsic in the last draft standard.

hadas:~% cat 1000d_linpack.f 
      double precision function ran( iseed )
      integer iseed(4)
      ran = 0.0
      end

      program linpack_test
      integer i(4)
      double precision r
      r = ran(i)
      end

hadas:~% gfortran -c 1000d_linpack.f
 In file 1000d_linpack.f:9

      r = ran(i)                                                        
             1
Error: 'i' argument of 'ran' intrinsic at (1) must be a scalar

-- 
           Summary: RAN() should not be an intrinsic function
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: lei at il dot ibm dot com
                CC: gcc-bugs at gcc dot gnu dot org


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


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

* [Bug fortran/20481] RAN() should not be an intrinsic function
  2005-03-15 12:51 [Bug fortran/20481] New: RAN() should not be an intrinsic function lei at il dot ibm dot com
@ 2005-03-15 12:53 ` lei at il dot ibm dot com
  2005-03-15 15:24 ` sgk at troutmask dot apl dot washington dot edu
  2005-03-15 16:06 ` pinskia at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: lei at il dot ibm dot com @ 2005-03-15 12:53 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |leehod at il dot ibm dot com


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


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

* [Bug fortran/20481] RAN() should not be an intrinsic function
  2005-03-15 12:51 [Bug fortran/20481] New: RAN() should not be an intrinsic function lei at il dot ibm dot com
  2005-03-15 12:53 ` [Bug fortran/20481] " lei at il dot ibm dot com
@ 2005-03-15 15:24 ` sgk at troutmask dot apl dot washington dot edu
  2005-03-15 16:06 ` pinskia at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: sgk at troutmask dot apl dot washington dot edu @ 2005-03-15 15:24 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From sgk at troutmask dot apl dot washington dot edu  2005-03-15 15:24 -------
Add "external ran" to your program.  RAN is an intrinsic
procedure because it was an intrinsic procedure in g77.
Or add "-std=f95" to your command line.

-- 


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


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

* [Bug fortran/20481] RAN() should not be an intrinsic function
  2005-03-15 12:51 [Bug fortran/20481] New: RAN() should not be an intrinsic function lei at il dot ibm dot com
  2005-03-15 12:53 ` [Bug fortran/20481] " lei at il dot ibm dot com
  2005-03-15 15:24 ` sgk at troutmask dot apl dot washington dot edu
@ 2005-03-15 16:06 ` pinskia at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-03-15 16:06 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-03-15 16:03 -------
Actually it was not g77 intrinsic but rather an hp extension intrinsic which  I had filed (PR 14993), 
adding what Steve recommends fixes the problem.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


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


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

end of thread, other threads:[~2005-03-15 16:04 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-03-15 12:51 [Bug fortran/20481] New: RAN() should not be an intrinsic function lei at il dot ibm dot com
2005-03-15 12:53 ` [Bug fortran/20481] " lei at il dot ibm dot com
2005-03-15 15:24 ` sgk at troutmask dot apl dot washington dot edu
2005-03-15 16:06 ` pinskia 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).