public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/30237]  New: Alternate return arguments in intrinsic subroutine calls are ignored
@ 2006-12-17  9:13 brooks at gcc dot gnu dot org
  2006-12-17 20:22 ` [Bug fortran/30237] " tobi at gcc dot gnu dot org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: brooks at gcc dot gnu dot org @ 2006-12-17  9:13 UTC (permalink / raw)
  To: gcc-bugs

Alternate-return arguments in argument lists are represented by a null symbol
or expression pointer.  In intrinsic.c, remove_nullargs() simply removes
null-pointer symbols from the argument list handled by an intrinsic function or
subroutine.  Ergo, an alternate-return actual argument in an intrinsic
subroutine call will simply be skipped over and ignored.  The following code
demonstrates this:

-------------------------------------------------------------------

debian-gfortran:~/test> cat ar1.f90
program ar1
    real t1
    call cpu_time(*20, t1)
20  write(*,*) t1
end

debian-gfortran:~/test> ../bin-trunk/bin/gfortran ar1.f90
debian-gfortran:~/test> ./a.out
  1.2997000E-02
debian-gfortran:~/test> ../bin-trunk/bin/gfortran --version
GNU Fortran 95 (GCC) 4.3.0 20061128 (experimental)
Copyright (C) 2006 Free Software Foundation, Inc.


-- 
           Summary: Alternate return arguments in intrinsic subroutine calls
                    are ignored
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Keywords: accepts-invalid
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: brooks at gcc dot gnu dot org


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


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

end of thread, other threads:[~2007-01-10 19:02 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-12-17  9:13 [Bug fortran/30237] New: Alternate return arguments in intrinsic subroutine calls are ignored brooks at gcc dot gnu dot org
2006-12-17 20:22 ` [Bug fortran/30237] " tobi at gcc dot gnu dot org
2006-12-19 12:48 ` pault at gcc dot gnu dot org
2006-12-19 17:09 ` pault at gcc dot gnu dot org
2006-12-28 18:41 ` pault at gcc dot gnu dot org
2007-01-06 14:14 ` [Bug fortran/30237] [4.2 and 4.1 only] " pault at gcc dot gnu dot org
2007-01-06 14:16 ` [Bug fortran/30237] [4.1 " pault at gcc dot gnu dot org
2007-01-10 19:02 ` 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).