[all-commits] [llvm/llvm-project] eb9a78: [flang] Fix bad parse tree rewrite into a substrin...

Peter Klausler via All-commits all-commits at lists.llvm.org
Thu Jul 11 13:43:14 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: eb9a78bb542434258f4f06097a0a336a055847a3
      https://github.com/llvm/llvm-project/commit/eb9a78bb542434258f4f06097a0a336a055847a3
  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

  Log Message:
  -----------
  [flang] Fix bad parse tree rewrite into a substring (#98407)

Data designators like "a(j:k)" are parsed into array section references,
but once rank and type information is in hand, some of them turn out to
actually be substring references. The code that recognizes these cases
was suffering from a "false positive" in the case of a construct entity
in a SELECT RANK construct due to the use of a predicate member function
(Symbol::IsObjectArray) that only works on ObjectEntityDetails symbols.
Fix the test to use the more general Symbol::Rank() member function.



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