[Bug fortran/84073] In -fc-prototypes fixed (nonzero) length strings are mapped to plain char in prototype.

emsr at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sat Jan 27 20:18:00 GMT 2018


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84073

--- Comment #5 from emsr at gcc dot gnu.org ---
In a way, I *am* treating this as a char array n the C side and it would
probably be most correct to have

    character(kind=c_char)  thing(42).

and get

    char thing[42];

honestly.

Is there a way in Fortran to convert, or alias such an array to a character
string?

Ed

This is probably WONTFIX PEBKAC.


More information about the Gcc-bugs mailing list