When the type(c_ptr/c_funptr) argument has value attribute in non-BIND(C)
procedure, it is passed by VALUE in gfortran. ifort does not do this. Be
consistent with gfortran.
Fix #58756.
Differential D137237
[flang][RFC] Change the interface for non-BIND(C) CPTR type with VALUE attribute peixin on Nov 2 2022, 3:23 AM. Authored by
Details When the type(c_ptr/c_funptr) argument has value attribute in non-BIND(C) Fix #58756.
Diff Detail Event TimelineComment Actions Thanks, @peixin. I have verified that this builds and tests correctly and, in combination with the fix in https://reviews.llvm.org/D137237, fixes the problem that I reported in #58739. @jeanPerier , can you please verify that the changes to the generated FIR look correct? |