[Bug fortran/84073] In -fc-prototypes fixed (nonzero) length strings are mapped to plain char in prototype.
tkoenig at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sun Jan 28 17:40:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84073
--- Comment #8 from Thomas Koenig <tkoenig at gcc dot gnu.org> ---
(In reply to Ed Smith-Rowland from comment #7)
> Thank you.
>
> I was curious, is there anything/anyone working the opposite problem?
> A -ffortran-interfaces converting structs to type and function protos to
> module interfaces?
I am not aware of anything like that.
For function prototypes at least, one problem is ambiguity on the C side.
Take
void foo(int *a, int n);
How should the corresponding Fortran subroutine look like?
subroutine foo(a, n)
real :: a
integer :: n
would be one option,
subroutine foo(a,n)
real :: a(*)
integer :: n
another.
More information about the Gcc-bugs
mailing list