[all-commits] [llvm/llvm-project] 8151d6: [flang] Diagnose REPEAT with negative NCOPIES=

Peter Klausler via All-commits all-commits at lists.llvm.org
Mon Feb 13 14:49:09 PST 2023


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

  Changed paths:
    M flang/lib/Evaluate/character.h
    M flang/lib/Evaluate/fold-character.cpp
    M flang/test/Evaluate/errors01.f90

  Log Message:
  -----------
  [flang] Diagnose REPEAT with negative NCOPIES=

Emit an error when the NCOPIES= argument to the intrinsic function
REPEAT has a negative value.  (The current implementation crashes, which
isn't informative.)

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




More information about the All-commits mailing list