You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Based on reading of the standard, it looks like the path forward here has to do with separate procedures for different types, and to use select rank internally to dispatch to different bind(c) procedures. There's still work to do in figuring out exactly what that looks like, and is probably worth some conversations with some other committee members as well.
Taking a fresh look at this, I don't think it's a problem.
A Fortran procedure interface is interoperable with a C function prototype if
...
(5) any dummy argument without the VALUE attribute corresponds to a formal parameter of the prototype that is of a pointer type, and
...
the dummy argument is ... assumed-rank ..., and the formal parameter is a pointer to CFI_cdesc_t
That doesn't say that the dummy argument can't be assumed-type.
C716 An assumed-type actual argument that corresponds to an assumed-rank dummy argument shall be assumed-shape or assumed-rank.
That certainly implies that assumed-type dummy arguments can be assumed-rank.
If flang seems to have a problem with this, we should file a bug report.
Fortran 2023 18.3.7 item 7 in the list on page 515 prohibits assumed-type, assumed-rank arguments without the
value
attribute.The text was updated successfully, but these errors were encountered: