[all-commits] [llvm/llvm-project] 8272e4: [flang] Exempt construct entities from SAVE check ...

Peter Klausler via All-commits all-commits at lists.llvm.org
Fri May 9 13:23:27 PDT 2025


  Branch: refs/heads/release/20.x
  Home:   https://github.com/llvm/llvm-project
  Commit: 8272e451613d8f929e3d9d0d28c3ca1b225b0000
      https://github.com/llvm/llvm-project/commit/8272e451613d8f929e3d9d0d28c3ca1b225b0000
  Author: Peter Klausler <pklausler at nvidia.com>
  Date:   2025-05-09 (Fri, 09 May 2025)

  Changed paths:
    M flang/lib/Semantics/check-declarations.cpp
    M flang/test/Semantics/call10.f90

  Log Message:
  -----------
  [flang] Exempt construct entities from SAVE check for PURE (#131383)

A PURE subprogram can't have a local variable with the SAVE attribute.
An ASSOCIATE or SELECT TYPE construct entity whose selector is a
variable will return true from IsSave(); exclude them from the local
variable check.

Fixes https://github.com/llvm/llvm-project/issues/131356.

(cherry picked from commit b99dab25879449cb89c1ebd7b4088163543918e3)



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