This is an archive of the discontinued LLVM Phabricator instance.

[Flang] [Semantics] More descript warning message for same named external statements and interfaces
ClosedPublic

Authored by pscoro on Feb 6 2023, 11:16 AM.

Details

Summary

For issue: https://github.com/llvm/llvm-project/issues/56605. Previous error messages are not descriptive of problem. Issuing warnings instead that do not halt compilation but offer better description of problem.

Diff Detail

Event Timeline

pscoro created this revision.Feb 6 2023, 11:16 AM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptFeb 6 2023, 11:16 AM
Herald added a subscriber: sunshaoce. · View Herald Transcript
pscoro requested review of this revision.Feb 6 2023, 11:16 AM
klausler accepted this revision.Feb 6 2023, 11:24 AM

Looks great to me; thanks! Please consider whether the new overloaded member function SayExternalDeclared will ever have another call site -- if that's unlikely, just call Say() instead and avoid the extra declarations.

This revision is now accepted and ready to land.Feb 6 2023, 11:24 AM
pscoro updated this revision to Diff 495531.Feb 7 2023, 7:21 AM

Replaced unneeded SayExternalDeclared methods with Say and fixed typo

This revision was landed with ongoing or failed builds.Feb 7 2023, 8:03 AM
This revision was automatically updated to reflect the committed changes.