This is an archive of the discontinued LLVM Phabricator instance.

[flang] Warn about construct names that are not distinct in the inclusive scope
ClosedPublic

Authored by klausler on Feb 10 2023, 1:26 PM.

Details

Summary

f18 implements BLOCK scoping for construct names, like most but not all Fortran
compilers, but in the 2018 standard such names are defined to be local identifiers
whose scope is the inclusive scope -- i.e., the subprogram or main program.
Detect usage that depends on this extension and emit a portability warning.

Diff Detail

Event Timeline

klausler created this revision.Feb 10 2023, 1:26 PM
Herald added a project: Restricted Project. · View Herald Transcript
klausler requested review of this revision.Feb 10 2023, 1:26 PM
vdonaldson accepted this revision.Feb 10 2023, 4:21 PM
This revision is now accepted and ready to land.Feb 10 2023, 4:21 PM