aboutsummaryrefslogtreecommitdiff
path: root/flang/docs
diff options
context:
space:
mode:
authorPeter Klausler <pklausler@nvidia.com>2023-07-11 10:05:22 -0700
committerPeter Klausler <pklausler@nvidia.com>2023-07-17 12:35:12 -0700
commitdf111658a2535d273a4d7d1edf7c412e090ac97e (patch)
tree380ea18a5012b84951bd67dd146b1845d5a032dd /flang/docs
parent755180cf1bae896c04efd49ddb71d7eb2dede490 (diff)
downloadllvm-df111658a2535d273a4d7d1edf7c412e090ac97e.zip
llvm-df111658a2535d273a4d7d1edf7c412e090ac97e.tar.gz
llvm-df111658a2535d273a4d7d1edf7c412e090ac97e.tar.bz2
[flang] Extension: allow DATA to precede declaration under IMPLICIT NONE(TYPE)
It is not standard conforming under IMPLICIT NONE(TYPE) for a name to appear in a DATA statement prior to its explicit type declaration, but it is benign, supported in other compilers, and attested in real applications. Support it with an optional portability warning. Fixes GitHub LLVM bug https://github.com/llvm/llvm-project/issues/63783.
Diffstat (limited to 'flang/docs')
-rw-r--r--flang/docs/Extensions.md2
1 files changed, 2 insertions, 0 deletions
diff --git a/flang/docs/Extensions.md b/flang/docs/Extensions.md
index d3cb2f1..bb9c0ebe 100644
--- a/flang/docs/Extensions.md
+++ b/flang/docs/Extensions.md
@@ -283,6 +283,8 @@ end
* When a name is brought into a scope by multiple ways,
such as USE-association as well as an `IMPORT` from its host,
it's an error only if the resolution is ambiguous.
+* An entity may appear in a `DATA` statement before its explicit
+ type declaration under `IMPLICIT NONE(TYPE)`.
### Extensions supported when enabled by options