This is an archive of the discontinued LLVM Phabricator instance.

[flang] Warn about violations of an obscure requirement (15.6.4 p2)
ClosedPublic

Authored by klausler on Mar 1 2023, 11:49 AM.

Details

Summary

The Fortran 2018 standard, perhaps as an attempt to prevent ambiguity
in older compilers, requires that a statement function appear in an
explicit type declaration statement if its name is also accessible
from a host scope. F18 processes the specification parts of inner
procedures first, so we don't need this requirement to prevent
ambiguity, and can only really check it retrospectively after name
resolution. Emit a portability warning when appropriate.

Diff Detail

Event Timeline

klausler created this revision.Mar 1 2023, 11:49 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 1 2023, 11:49 AM
klausler requested review of this revision.Mar 1 2023, 11:49 AM
PeteSteinfeld accepted this revision.Mar 1 2023, 1:45 PM

Aside from the typo in the document, all builds and tests correctly and looks good.

flang/docs/Extensions.md
90

"witha" should be "with a"

This revision is now accepted and ready to land.Mar 1 2023, 1:45 PM
klausler updated this revision to Diff 501660.Mar 1 2023, 2:05 PM

Fix a typo.