https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117643
Bug ID: 117643 Summary: F_C_STRING from F23 is missing Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: kargls at comcast dot net Target Milestone: --- Fortran 2023 added the F_C_STRING() function to the C interop facility. This routine simply appends a terminating C_NULL_CHAR to a CHARACTER(kind=c_char) string. Not sure why J3 thought that this change was needed. 18.2.3.9 F_C_STRING (STRING [, ASIS]) 1 Description. String with appended null character. 2 Class. Transformational function. 3 Arguments. STRING shall be a character scalar of kind C_CHAR. If C_CHAR has the value -1, indicating that there is no C character kind, the generic function F_C_STRING has no specific procedure. ASIS (optional) shall be a logical scalar. 4 Result Characteristics. Character scalar of kind C_CHAR. If ASIS is present with the value true, the length type parameter of the result is equal to one plus the length of STRING, otherwise it is equal to one plus the length of STRING without trailing blanks. 5 Result Value. The leftmost characters of the result, up to the penultimate character, are equal to the corresponding characters of STRING. The final character of the result is equal to C_NULL_CHAR.