This is an archive of the discontinued LLVM Phabricator instance.

[flang] Warn on missing colons (C768)
ClosedPublic

Authored by klausler on Nov 30 2022, 5:06 PM.

Details

Summary

In a derived type definition, a type bound procedure declaration
statement with neither interface nor attributes is required by constraint
C768 to have the optional "::" between the PROCEDURE keyword and the
bindings if any binding has a renaming with "=>". The colons are
not actually necessary for a correct and unambiguous parse, so
emit a warning when they are missing.

Diff Detail

Event Timeline

klausler created this revision.Nov 30 2022, 5:06 PM
Herald added a project: Restricted Project. · View Herald Transcript
Herald added a subscriber: jdoerfert. · View Herald Transcript
klausler requested review of this revision.Nov 30 2022, 5:06 PM
vdonaldson accepted this revision.Nov 30 2022, 10:38 PM
This revision is now accepted and ready to land.Nov 30 2022, 10:38 PM
This revision was automatically updated to reflect the committed changes.