This is an archive of the discontinued LLVM Phabricator instance.

[flang] Disallow BOZ literal constants as arguments of implicit interfaces
ClosedPublic

Authored by PeteSteinfeld on Jul 26 2021, 2:29 PM.

Details

Summary

Since BOZ literal arguments are typeless, we cannot know how to pass them as
actual arguments to procedures with implicit interfaces. This change avoids
the problem by emitting an error message in such situations.

This change stemmed from the following issue --

https://github.com/flang-compiler/f18-llvm-project/issues/794

Diff Detail

Event Timeline

PeteSteinfeld requested review of this revision.Jul 26 2021, 2:29 PM
PeteSteinfeld created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptJul 26 2021, 2:29 PM
PeteSteinfeld added a project: Restricted Project.
klausler accepted this revision.Jul 26 2021, 2:49 PM
klausler added inline comments.
flang/lib/Semantics/check-call.cpp
51

Wording can be better; try something like "BOZ literal argument requires an explicit interface", like line #44 above.

This revision is now accepted and ready to land.Jul 26 2021, 2:49 PM
This revision was landed with ongoing or failed builds.Jul 26 2021, 3:07 PM
This revision was automatically updated to reflect the committed changes.