[all-commits] [llvm/llvm-project] c1c992: [flang] Allow a few irrelevant attributes, with wa...

Peter Klausler via All-commits all-commits at lists.llvm.org
Mon Dec 2 12:25:44 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c1c9929028004a717d8dea3cdf416260ef97bea8
      https://github.com/llvm/llvm-project/commit/c1c9929028004a717d8dea3cdf416260ef97bea8
  Author: Peter Klausler <pklausler at nvidia.com>
  Date:   2024-12-02 (Mon, 02 Dec 2024)

  Changed paths:
    M flang/include/flang/Common/Fortran-features.h
    M flang/lib/Common/Fortran-features.cpp
    M flang/lib/Semantics/check-declarations.cpp
    M flang/test/Semantics/call14.f90
    M flang/test/Semantics/resolve58.f90

  Log Message:
  -----------
  [flang] Allow a few irrelevant attributes, with warning (#117374)

INTENT, VALUE, and OPTIONAL attributes apply only to dummy arguments. A
couple older compilers accept them, usually with a warning, if they are
applied to names that are not dummy arguments, and they show up in some
older non-portable source code. Change these cases into stern warnings
by default.



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