[all-commits] [llvm/llvm-project] ff8288: [flang] Fix crash in error recovery (#140768)

Peter Klausler via All-commits all-commits at lists.llvm.org
Wed May 28 14:00:09 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ff8288442dad15d66b7a22ccad94e926e2f56deb
      https://github.com/llvm/llvm-project/commit/ff8288442dad15d66b7a22ccad94e926e2f56deb
  Author: Peter Klausler <pklausler at nvidia.com>
  Date:   2025-05-28 (Wed, 28 May 2025)

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

  Log Message:
  -----------
  [flang] Fix crash in error recovery (#140768)

When a TYPE(*) dummy argument is erroneously used as a component value
in a structure constructor, semantics crashes if the structure
constructor had been initially parsed as a potential function reference.
Clean out stale typed expressions when reanalyzing the reconstructed
parse subtree to ensure that errors are caught the next time around.



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