[all-commits] [llvm/llvm-project] 066aec: [flang] INTENT(IN) pointer may not be forwarded to...

Peter Klausler via All-commits all-commits at lists.llvm.org
Sat Dec 3 16:28:32 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 066aecff9272bdb0c02ff9379ede1bdbd854880e
      https://github.com/llvm/llvm-project/commit/066aecff9272bdb0c02ff9379ede1bdbd854880e
  Author: Peter Klausler <pklausler at nvidia.com>
  Date:   2022-12-03 (Sat, 03 Dec 2022)

  Changed paths:
    M flang/lib/Semantics/check-call.cpp
    A flang/test/Semantics/definable01.f90
    R flang/test/Semantics/modifiable01.f90

  Log Message:
  -----------
  [flang] INTENT(IN) pointer may not be forwarded to INTENT(IN OUT) or (OUT) dummy

19.6.8 forbids using an INTENT(IN) pointer dummy argument in a pointer association
context, and associated such a pointer with a dummy argument of INTENT(IN OUT) or
INTENT(OUT) is a circumstance that needs to be caught as an error.

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




More information about the All-commits mailing list