[flang-commits] [PATCH] D154242: [flang] Add optional portability warning for upcoming Fortran 202X/3 breaking change

Peter Klausler via Phabricator via flang-commits flang-commits at lists.llvm.org
Fri Jun 30 11:30:28 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.

The soon-to-be-published next revision of the ISO Fortran language standard
contains a couple of breaking changes to previous specifications that may cause
existing programs to silently change their behavior.

For the change that introduces automatic reallocation of deferred length
allocatable character scalar variables when they appear as the targets
of internal WRITE statements, as IOMSG=/ERRMSG= variables, as outputs
of INQUIRE specifiers, or as INTENT(OUT) arguments to intrinsic
procedures, this patch adds an optional portability warning.


https://reviews.llvm.org/D154242

Files:
  flang/include/flang/Common/Fortran-features.h
  flang/include/flang/Semantics/tools.h
  flang/lib/Semantics/check-allocate.cpp
  flang/lib/Semantics/check-call.cpp
  flang/lib/Semantics/check-coarray.cpp
  flang/lib/Semantics/check-deallocate.cpp
  flang/lib/Semantics/check-io.cpp
  flang/lib/Semantics/tools.cpp
  flang/test/Semantics/breaking01.f90

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D154242.536335.patch
Type: text/x-patch
Size: 10330 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20230630/469abb51/attachment.bin>


More information about the flang-commits mailing list