[Bug fortran/94331] Bind(C) corrupts array descriptors
sandra at gcc dot gnu.org
Fri May 14 03:04:12 GMT 2021
--- Comment #4 from sandra at gcc dot gnu.org ---
OK, there are two flavors of failures being diagnosed by the test case.
The first flavor involves the lower bounds of an array passed into a bind(c)
procedure being set to zero in the callee when the test case thinks they should
be inherited from the array in the caller. I'm still trying to grok what the
standard actually says about these cases.
The second flavor looks like the same bug as PR93308, involving the lower
bounds of an array passed to a bind(c) procedure appearing to be correct in the
callee, but set to zero in the caller after return.
More information about the Gcc-bugs