[all-commits] [llvm/llvm-project] 6d4c88: [flang] Allow use of COMMON in PURE (#76741)

Peter Klausler via All-commits all-commits at lists.llvm.org
Mon Jan 15 09:20:32 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 6d4c88786aa503f803a6ec881e66fe1e1f38f6d8
      https://github.com/llvm/llvm-project/commit/6d4c88786aa503f803a6ec881e66fe1e1f38f6d8
  Author: Peter Klausler <35819229+klausler at users.noreply.github.com>
  Date:   2024-01-15 (Mon, 15 Jan 2024)

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

  Log Message:
  -----------
  [flang] Allow use of COMMON in PURE (#76741)

Although COMMON variables implicitly have the SAVE attribute, and
variables with the SAVE attribute are generally disallowed in PURE
subprograms, we must allow the use of COMMON in PURE as an exception.
F'2023 constraint C1598 applies only to local variables.




More information about the All-commits mailing list