When I have an IMPLICIT CHARACTER(S) statement above a declaration,
the SELECTED_INT_KIND( ) function is diagnosed as a character function
with the message


u_dimension.f:3.50:

      INTEGER, DIMENSION(0:20) ::  IP_ARRAY1_3_S =
                                                 1
Error: Can't convert CHARACTER(1) to INTEGER(4) at (1)

      MODULE U_TESTS
      implicit character(s)
      INTEGER, DIMENSION(0:20) ::  IP_ARRAY1_3_S =
     $     (/ (SELECTED_INT_KIND(J1),J1=0,20) /)
      END MODULE U_TESTS


Note, I've gotten the same error message in other contexts.  This might
be a broader problem that just the selected_int_kind function in a
unusual use.  If it isn't obvious to you that there is a more general
problem than this isolated example, I'll try to track down some more
examples.

Dick Hendrickson


-- 
           Summary: implicit character(s) hides type of selected_int_kind
                    intrinsic
           Product: gcc
           Version: 4.3.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=34784

Reply via email to