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

Reply via email to