[all-commits] [llvm/llvm-project] 50960e: [flang] Catch character length errors in pointer a...

Peter Klausler via All-commits all-commits at lists.llvm.org
Wed Feb 1 12:13:03 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 50960e93833c821598044db131cf820edf6c6b3f
      https://github.com/llvm/llvm-project/commit/50960e93833c821598044db131cf820edf6c6b3f
  Author: Peter Klausler <pklausler at nvidia.com>
  Date:   2023-02-01 (Wed, 01 Feb 2023)

  Changed paths:
    M flang/include/flang/Evaluate/characteristics.h
    M flang/lib/Evaluate/characteristics.cpp
    M flang/lib/Evaluate/variable.cpp
    M flang/lib/Semantics/check-call.cpp
    M flang/lib/Semantics/pointer-assignment.cpp
    A flang/test/Semantics/assign13.f90

  Log Message:
  -----------
  [flang] Catch character length errors in pointer associations

When character lengths are known at compilation time, report an error
when a data target with a known length does not match the explicit length
of a pointer that is being associated with it; see 10.2.2.3 paragraph 5.

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




More information about the All-commits mailing list