This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/34784] New: implicit character(s) hides type of selected_int_kind intrinsic
- From: "dick dot hendrickson at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 14 Jan 2008 21:34:58 -0000
- Subject: [Bug fortran/34784] New: implicit character(s) hides type of selected_int_kind intrinsic
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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