public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/35770]  New: implicit character(s) hides type of internal function
@ 2008-03-30 21:10 dick dot hendrickson at gmail dot com
  2008-03-30 21:35 ` [Bug fortran/35770] " burnus at gcc dot gnu dot org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: dick dot hendrickson at gmail dot com @ 2008-03-30 21:10 UTC (permalink / raw)
  To: gcc-bugs

The program gives an error message when the internal
function has an apparent character type due to the implicit
statement.  Commenting out the implicit fixes it.  This
looks similar to 34784 to me.

      program SA0021

! fails on Windows XP
! gcc version 4.4.0 20080312 (experimental) [trunk revision 133139]
!maybe also see 34784?


      implicit character (s)  ! removing this fixes the problem
      REAL RDA(10)
      RDA = 0

      RDA(J1) = S_REAL_SQRT_I(RDA(J1))

      CONTAINS

      ELEMENTAL FUNCTION S_REAL_SQRT_I(X) RESULT (R)
      REAL, INTENT(IN)  ::  X
      REAL              ::  R
        R = 0.0
      END FUNCTION S_REAL_SQRT_I     !internal procedure

      END

gfortran:gfortran sa0021.f
sa0021.f:11.16:

      RDA(J1) = S_REAL_SQRT_I(RDA(J1))
               1
Error: Can't convert CHARACTER(1) to REAL(4) at (1)


-- 
           Summary: implicit character(s) hides type of internal function
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: dick dot hendrickson at gmail dot com


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


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

end of thread, other threads:[~2008-09-17 12:00 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-03-30 21:10 [Bug fortran/35770] New: implicit character(s) hides type of internal function dick dot hendrickson at gmail dot com
2008-03-30 21:35 ` [Bug fortran/35770] " burnus at gcc dot gnu dot org
2008-03-30 21:39 ` burnus at gcc dot gnu dot org
2008-09-12 11:14 ` domob at gcc dot gnu dot org
2008-09-13  7:47 ` domob at gcc dot gnu dot org
2008-09-17 11:58 ` domob at gcc dot gnu dot org
2008-09-17 12:00 ` domob 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).