This is an archive of the discontinued LLVM Phabricator instance.

[flang] Add two semantic checks about BIND(C) attribute
ClosedPublic

Authored by peixin on Oct 21 2022, 12:10 AM.

Details

Summary

As Fortran 2018 C1546, an elemental procedure shall not have the BIND
attribute.

As 18.3.6, it does not mention that an array with VALUE can be
interoperable. It is not reasonable to pass an array by value when the
array is too large. Forbid it to be consistent with gfortran/ifort.

Diff Detail

Event Timeline

peixin created this revision.Oct 21 2022, 12:10 AM
Herald added a project: Restricted Project. · View Herald Transcript
peixin requested review of this revision.Oct 21 2022, 12:10 AM
jeanPerier accepted this revision.Oct 24 2022, 5:49 AM

LGTM, thanks

This revision is now accepted and ready to land.Oct 24 2022, 5:49 AM
This revision was automatically updated to reflect the committed changes.