This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/34254] New: "character(kind=c_char) function" fails if c_char is not host associated
- From: "burnus at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 27 Nov 2007 22:43:02 -0000
- Subject: [Bug fortran/34254] New: "character(kind=c_char) function" fails if c_char is not host associated
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
The following is rejected with:
Error: Parameter 'c_char' at (1) has not been declared or is a variable, which
does not reduce to a constant expression
I thought it was fixed by the patch for
PR fortran/31154
PR fortran/31229
PR fortran/33334
but seemingly it was not :-(
character(len=1,kind=c_char) function test() bind(C)
use iso_c_binding
test = 'T'
end function
--
Summary: "character(kind=c_char) function" fails if c_char is not
host associated
Product: gcc
Version: 4.3.0
Status: UNCONFIRMED
Keywords: rejects-valid
Severity: normal
Priority: P3
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: burnus at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34254