[all-commits] [llvm/llvm-project] 2985d5: [flang] Improve error message (initialized variabl...

Peter Klausler via All-commits all-commits at lists.llvm.org
Wed Jan 19 17:27:47 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2985d5623c88f760d5c594d19558cd5c57ff3f45
      https://github.com/llvm/llvm-project/commit/2985d5623c88f760d5c594d19558cd5c57ff3f45
  Author: Peter Klausler <pklausler at nvidia.com>
  Date:   2022-01-19 (Wed, 19 Jan 2022)

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

  Log Message:
  -----------
  [flang] Improve error message (initialized variable in pure subprogram)

When variable with the SAVE attribute appears in a pure subprogram,
emit a more specialized error message if the SAVE attribute was acquired
from static initialization.

Differential Revision: https://reviews.llvm.org/D117699




More information about the All-commits mailing list