[all-commits] [llvm/llvm-project] c2e5f4: [flang] Add warnings for non-standard C_F_POINTER(...

Peter Klausler via All-commits all-commits at lists.llvm.org
Thu Jan 25 13:50:52 PST 2024


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

  Changed paths:
    M flang/lib/Evaluate/intrinsics.cpp
    M flang/test/Semantics/c_f_pointer.f90

  Log Message:
  -----------
  [flang] Add warnings for non-standard C_F_POINTER() usage (#78332)

There's a few restrictions in the standard on the Fortran pointer
argument (FPTR=) to the intrinsic subroutine C_F_POINTER() that almost
no compilers enforce. Enforce them here with warnings.




More information about the All-commits mailing list