[all-commits] [llvm/llvm-project] 7871de: [flang] Add optional portability warning for upcom...

Peter Klausler via All-commits all-commits at lists.llvm.org
Mon Jul 3 09:29:06 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7871deb8213c2162e6234537f334ff6b11257b23
      https://github.com/llvm/llvm-project/commit/7871deb8213c2162e6234537f334ff6b11257b23
  Author: Peter Klausler <pklausler at nvidia.com>
  Date:   2023-07-03 (Mon, 03 Jul 2023)

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

  Log Message:
  -----------
  [flang] Add optional portability warning for upcoming Fortran 202X/3 breaking change

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.

Differential Revision: https://reviews.llvm.org/D154242




More information about the All-commits mailing list