public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/33162]  New: Type checking absent for specific names of INTRINSIC functions
@ 2007-08-23 16:29 burnus at gcc dot gnu dot org
  2007-09-05 14:14 ` [Bug fortran/33162] INTRINSIC functions as ACTUAL argument burnus at gcc dot gnu dot org
                   ` (23 more replies)
  0 siblings, 24 replies; 25+ messages in thread
From: burnus at gcc dot gnu dot org @ 2007-08-23 16:29 UTC (permalink / raw)
  To: gcc-bugs

Example:
  print *, dcos(1.0)
  print *, dcos(1d0)

gfortran treats them as it does with "cos()": Any kind of REAL is accepted.
However, DCOS is a specific name of COS which only accepts REAL(8).

The bug should be fixed such that the following works as well:

PROCEDURE(DCOS):: my1
PROCEDURE(COS) :: my2

"MY1" is a function with the interface:
  interface
    double precision function my1(x)
      double precision, intent(in) :: x
    end function my1
  end interface
(Note especially also the intent(in) and the dummy argument "x".)

"MY1" takes the interface from the specific name of COS: Only REAL(4) is
accepted.


-- 
           Summary: Type checking absent for specific names of INTRINSIC
                    functions
           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: burnus at gcc dot gnu dot org


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


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

end of thread, other threads:[~2007-11-14  1:17 UTC | newest]

Thread overview: 25+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-08-23 16:29 [Bug fortran/33162] New: Type checking absent for specific names of INTRINSIC functions burnus at gcc dot gnu dot org
2007-09-05 14:14 ` [Bug fortran/33162] INTRINSIC functions as ACTUAL argument burnus at gcc dot gnu dot org
2007-10-21  0:15 ` jvdelisle at gcc dot gnu dot org
2007-10-21  3:34 ` jvdelisle at gcc dot gnu dot org
2007-10-21  9:30 ` burnus at gcc dot gnu dot org
2007-10-21 10:44 ` burnus at gcc dot gnu dot org
2007-10-21 16:39 ` jvdelisle at gcc dot gnu dot org
2007-10-21 21:32 ` jvdelisle at gcc dot gnu dot org
2007-10-22  6:56 ` burnus at gcc dot gnu dot org
2007-10-23  1:42 ` jvdelisle at gcc dot gnu dot org
2007-10-27  0:54 ` jvdelisle at gcc dot gnu dot org
2007-10-27  0:57 ` jvdelisle at gcc dot gnu dot org
2007-10-27 21:07 ` burnus at gcc dot gnu dot org
2007-10-31  4:00 ` patchapp at dberlin dot org
2007-10-31 14:27 ` jvdelisle at gcc dot gnu dot org
2007-10-31 14:31 ` jvdelisle at gcc dot gnu dot org
2007-11-02  5:26 ` jvdelisle at gcc dot gnu dot org
2007-11-02  5:41 ` jvdelisle at gcc dot gnu dot org
2007-11-02  5:56 ` jvdelisle at gcc dot gnu dot org
2007-11-02 20:53 ` jaydub66 at gmail dot com
2007-11-03 22:02 ` jvdelisle at gcc dot gnu dot org
2007-11-12  5:56 ` patchapp at dberlin dot org
2007-11-14  0:59 ` jvdelisle at gcc dot gnu dot org
2007-11-14  1:06 ` jvdelisle at gcc dot gnu dot org
2007-11-14  1:17 ` jvdelisle 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).