This is an archive of the discontinued LLVM Phabricator instance.

[flang] Warn about defined operator with too few/many dummy arguments
ClosedPublic

Authored by klausler on Jan 27 2023, 9:45 AM.

Details

Summary

A function in a defined operator generic interface will syntactically
have one or two arguments. If a defined operator includes a specific
function with 0 or more than 2 dummy arguments, there's no way that it
could be invoked by way of the interface. Emit a warning.

Diff Detail

Event Timeline

klausler created this revision.Jan 27 2023, 9:45 AM
Herald added a project: Restricted Project. · View Herald Transcript
klausler requested review of this revision.Jan 27 2023, 9:45 AM
PeteSteinfeld accepted this revision.Jan 27 2023, 10:55 AM

All builds and tests correctly and looks good.

This revision is now accepted and ready to land.Jan 27 2023, 10:55 AM