Skip to content

Commit

Permalink
[flang][docs] Document module name extension
Browse files Browse the repository at this point in the history
Add an entry to the Extensions document describing how we
don't care about conflicts between module names and non-global
items.  (This is a case where it would be a nontrivial amount
of work to catch an "error" that is only a standard conformance
issue, not anything that would prevent a program from working.)

Differential Revision: https://reviews.llvm.org/D147387
  • Loading branch information
klausler committed Apr 1, 2023
1 parent 5296292 commit 0a3fdd6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions flang/docs/Extensions.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,9 @@ end
from sharing the same name as a symbol in its scope's host, if it
has one.
We accept this usage with a portability warning.
* A module name from a `USE` statement can also be used as a
non-global name in the same scope. This is not conforming,
but it is useful and unambiguous.

## Extensions, deletions, and legacy features supported by default

Expand Down

0 comments on commit 0a3fdd6

Please sign in to comment.