[all-commits] [llvm/llvm-project] 2dab5b: [flang] Warn on mismatched DATA substring sizes ra...

Peter Klausler via All-commits all-commits at lists.llvm.org
Mon Feb 13 12:31:29 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2dab5bdf89f6e62e48b6b8364abae0c8e6c2fa0c
      https://github.com/llvm/llvm-project/commit/2dab5bdf89f6e62e48b6b8364abae0c8e6c2fa0c
  Author: Peter Klausler <pklausler at nvidia.com>
  Date:   2023-02-13 (Mon, 13 Feb 2023)

  Changed paths:
    M flang/include/flang/Evaluate/initial-image.h
    M flang/lib/Semantics/data-to-inits.cpp
    A flang/test/Semantics/data17.f90

  Log Message:
  -----------
  [flang] Warn on mismatched DATA substring sizes rather than crashing

When a DATA statement initializes a substring with a character constant
of the wrong length, do the right thing with blank padding or truncation,
and emit a warning.  Current code is crashing due to an unhandled error
reported from the low-level data image initialization framework.

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




More information about the All-commits mailing list