[all-commits] [llvm/llvm-project] 2d7e13: [flang] Adjust semantics of the char length of an ...
Peter Klausler via All-commits
all-commits at lists.llvm.org
Thu Jul 11 12:30:19 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 2d7e136fc0e31207b962397250bc1581203c8d59
https://github.com/llvm/llvm-project/commit/2d7e136fc0e31207b962397250bc1581203c8d59
Author: Peter Klausler <35819229+klausler at users.noreply.github.com>
Date: 2024-07-11 (Thu, 11 Jul 2024)
Changed paths:
M flang/lib/Semantics/expression.cpp
M flang/test/Lower/HLFIR/array-ctor-character.f90
M flang/test/Semantics/array-constr-len.f90
Log Message:
-----------
[flang] Adjust semantics of the char length of an array constructor (#97337)
An implied DO loop with no trips in an array constructor does not have a
well-defined character length unless its data items have a length that
is constant expression. That works, but the implementation is too
broadly applied. An array constructor with an explicit type-spec always
has a well-defined length.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list