This is an archive of the discontinued LLVM Phabricator instance.

[flang] Accept non-interoperable LOGICAL scalar dummy arguments
ClosedPublic

Authored by klausler on Mar 13 2023, 11:06 AM.

Details

Summary

Some Fortran compilers allow kinds of LOGICAL other than C_BOOL
for the types of dummy arguments to interoperable (BIND(C))
procedures. As any kind of LOGICAL can be converted to any
other without loss of information, this seems to be a useful
unambiguous extension that is attested in real codes; accept it
for scalars with a portability warning.

Diff Detail

Event Timeline

klausler created this revision.Mar 13 2023, 11:06 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 13 2023, 11:06 AM
klausler requested review of this revision.Mar 13 2023, 11:06 AM
This revision is now accepted and ready to land.Mar 13 2023, 12:04 PM
This revision was landed with ongoing or failed builds.Mar 13 2023, 5:59 PM
This revision was automatically updated to reflect the committed changes.