public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/36771]  New: Non-Standard addition for C_LOC and character strings
@ 2008-07-09 14:59 brtnfld at hdfgroup dot org
  2008-07-14 20:46 ` [Bug fortran/36771] " brtnfld at hdfgroup dot org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: brtnfld at hdfgroup dot org @ 2008-07-09 14:59 UTC (permalink / raw)
  To: gcc-bugs

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


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

end of thread, other threads:[~2008-12-15 20:36 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-07-09 14:59 [Bug fortran/36771] New: Non-Standard addition for C_LOC and character strings brtnfld at hdfgroup dot org
2008-07-14 20:46 ` [Bug fortran/36771] " brtnfld at hdfgroup dot org
2008-12-12 16:20 ` burnus at gcc dot gnu dot org
2008-12-15 10:50 ` burnus at gcc dot gnu dot org
2008-12-15 16:53 ` brtnfld at hdfgroup dot org
2008-12-15 20:36 ` burnus 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).