[all-commits] [llvm/llvm-project] 9c446d: [flang] More compile-time error checking for null ...

Peter Klausler via All-commits all-commits at lists.llvm.org
Tue Aug 1 09:25:58 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9c446da5565f78cedbb7c4830a549ff0543541e5
      https://github.com/llvm/llvm-project/commit/9c446da5565f78cedbb7c4830a549ff0543541e5
  Author: Peter Klausler <pklausler at nvidia.com>
  Date:   2023-08-01 (Tue, 01 Aug 2023)

  Changed paths:
    M flang/lib/Semantics/expression.cpp
    M flang/test/Semantics/array-constr-len.f90

  Log Message:
  -----------
  [flang] More compile-time error checking for null implied DO loops in array constructors

An implied DO loop in an array constructor may not have a type (explicit
or otherwise) with a character length that depends on a value of an
implied DO index or a non-constant expression if the implied DO loop
executes no iterations.  When the iteration count can be known to be
zero at compilation time, catch the case of a non-constant length
expression correctly.

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




More information about the All-commits mailing list