This is an archive of the discontinued LLVM Phabricator instance.

[flang] Enforce prohibition against empty interoperable arrays
ClosedPublic

Authored by klausler on Mar 1 2023, 12:14 PM.

Details

Summary

Fortran doesn't allow a BIND(C) variable or a component of a BIND(C)
type to be an array with no elements.

Diff Detail

Event Timeline

klausler created this revision.Mar 1 2023, 12:14 PM
Herald added a project: Restricted Project. · View Herald TranscriptMar 1 2023, 12:14 PM
klausler requested review of this revision.Mar 1 2023, 12:14 PM
vdonaldson accepted this revision.Mar 1 2023, 1:22 PM
vdonaldson added inline comments.
flang/lib/Semantics/check-declarations.cpp
2237

It might be helpful to reconsider the wording of this message while in the neighborhood - the first two definite articles seem a little odd.

This revision is now accepted and ready to land.Mar 1 2023, 1:22 PM
klausler updated this revision to Diff 501655.Mar 1 2023, 1:42 PM

Improve an error message per review comment.