From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27718 invoked by alias); 9 Jul 2008 14:59:57 -0000 Received: (qmail 27475 invoked by uid 48); 9 Jul 2008 14:59:14 -0000 Date: Wed, 09 Jul 2008 14:59:00 -0000 Subject: [Bug fortran/36771] New: Non-Standard addition for C_LOC and character strings X-Bugzilla-Reason: CC Message-ID: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "brtnfld at hdfgroup dot org" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2008-07/txt/msg00916.txt.bz2 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