This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/36771] New: Non-Standard addition for C_LOC and character strings
- From: "brtnfld at hdfgroup dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 9 Jul 2008 14:59:14 -0000
- Subject: [Bug fortran/36771] New: Non-Standard addition for C_LOC and character strings
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
Would it be possible to implement the non-standard extension for a character
argument X in C_LOC(X) to have a LEN >1. Most if not all the current Fortran
compilers provide this extension and I think it would be useful for other users
of gfortran as well.
The feature would allow:
CHARACTER(LEN=80, KIND=C_CHAR), TARGET :: X
....
f_ptr = C_LOC(X)
or for an assumed size character in a subroutine:
CHARACTER(LEN=*, KIND=C_CHAR), TARGET :: X
....
f_ptr = C_LOC(X)
Thanks
--
Summary: Non-Standard addition for C_LOC and character strings
Product: gcc
Version: 4.4.0
Status: UNCONFIRMED
Severity: enhancement
Priority: P3
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: brtnfld at hdfgroup dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36771