[all-commits] [llvm/llvm-project] 84c6dc: [flang] Downgrade a fatal error to a warning

Peter Klausler via All-commits all-commits at lists.llvm.org
Wed Apr 27 12:38:44 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 84c6dc96accc6a0818f196b1a09c9696354a4c19
      https://github.com/llvm/llvm-project/commit/84c6dc96accc6a0818f196b1a09c9696354a4c19
  Author: Peter Klausler <pklausler at nvidia.com>
  Date:   2022-04-27 (Wed, 27 Apr 2022)

  Changed paths:
    M flang/lib/Semantics/check-case.cpp
    M flang/test/Semantics/case01.f90

  Log Message:
  -----------
  [flang] Downgrade a fatal error to a warning

A non-CHARACTER expression in a CASE statement is allowed to have
a distinct kind (not type) from the expression in its SELECT CASE.
If a value in a CASE statement is out of range for the SELECT CASE
type, emit a warning, but it should not be a fatal error.

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




More information about the All-commits mailing list