This is an archive of the discontinued LLVM Phabricator instance.

[flang] Add name match checks for interface procedures
ClosedPublic

Authored by PeteSteinfeld on Oct 16 2020, 6:28 PM.

Details

Summary

We had neglected to check for name mismatches for procedure definitions that
appear in interfaces.

I also changed label11.f90 to an error test since I think they're better than
"FileCheck" tests.

Diff Detail

Event Timeline

PeteSteinfeld created this revision.Oct 16 2020, 6:28 PM
Herald added a project: Restricted Project. · View Herald TranscriptOct 16 2020, 6:28 PM
PeteSteinfeld requested review of this revision.Oct 16 2020, 6:28 PM
PeteSteinfeld added a project: Restricted Project.Oct 16 2020, 6:29 PM

Added comments to label11.f90 specifying the constraints checked.

tskeith added inline comments.Oct 17 2020, 8:31 AM
flang/test/Semantics/label11.f90
27

There is supposed to be an error reported here too.

PeteSteinfeld added inline comments.Oct 18 2020, 11:10 AM
flang/test/Semantics/label11.f90
27

Wow, Tim. You have eagle eyes. For some reason, we were reporting this mismatch as a warning rather than an error. I'll fix the code and test.

We were reporting generic interface name mismatchess as warnings rather than as
errors. I fixed the code to report them as errors and adjusted the test.

Added the reference to the constraint in the standard for mismatched interfaces
to the code and test.

tskeith accepted this revision.Oct 19 2020, 7:08 AM
This revision is now accepted and ready to land.Oct 19 2020, 7:08 AM