[flang-commits] [PATCH] D155496: [flang] Extension: allow DATA to precede declaration under IMPLICIT NONE(TYPE)

Peter Klausler via Phabricator via flang-commits flang-commits at lists.llvm.org
Mon Jul 17 10:26:34 PDT 2023


klausler created this revision.
klausler added a reviewer: kiranchandramohan.
klausler added a project: Flang.
Herald added subscribers: sunshaoce, jdoerfert.
Herald added a reviewer: sscalpone.
Herald added a project: All.
klausler requested review of this revision.

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.


https://reviews.llvm.org/D155496

Files:
  flang/docs/Extensions.md
  flang/include/flang/Common/Fortran-features.h
  flang/lib/Semantics/resolve-names.cpp
  flang/test/Semantics/resolve30.f90

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D155496.541124.patch
Type: text/x-patch
Size: 4189 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20230717/88f8a5e7/attachment.bin>


More information about the flang-commits mailing list