[all-commits] [llvm/llvm-project] 47b485: [flang] Fix type of array constructor triplet (ext...

Peter Klausler via All-commits all-commits at lists.llvm.org
Thu May 23 16:10:07 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 47b485c052d3ced9d846cf0e9b6a1a7d450f6dee
      https://github.com/llvm/llvm-project/commit/47b485c052d3ced9d846cf0e9b6a1a7d450f6dee
  Author: Peter Klausler <35819229+klausler at users.noreply.github.com>
  Date:   2024-05-23 (Thu, 23 May 2024)

  Changed paths:
    M flang/lib/Semantics/expression.cpp
    A flang/test/Evaluate/triplets01.f90

  Log Message:
  -----------
  [flang] Fix type of array constructor triplet (extension) (#92970)

The type of "[lo:hi:str]" is being forced to INTEGER(8), ignoring the
types of the operands to the triplet. The type of a triplet should be
whatever the type of "lo+hi+str" would be.

(Array constructor triplets are a syntactic sugar extension for an
implied DO loop.)



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