[all-commits] [llvm/llvm-project] c6bf92: [flang][semantics] Add a flag to relax some of the...

Andre Kuhlenschmidt via All-commits all-commits at lists.llvm.org
Mon May 4 10:22:54 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c6bf92e51d58d69e69101e2ca691cdab726d980c
      https://github.com/llvm/llvm-project/commit/c6bf92e51d58d69e69101e2ca691cdab726d980c
  Author: Andre Kuhlenschmidt <andre.kuhlenschmidt at gmail.com>
  Date:   2026-05-04 (Mon, 04 May 2026)

  Changed paths:
    M clang/include/clang/Options/FlangOptions.td
    M flang/docs/Extensions.md
    M flang/include/flang/Support/Fortran-features.h
    M flang/lib/Evaluate/intrinsics.cpp
    M flang/lib/Frontend/CompilerInvocation.cpp
    M flang/lib/Support/Fortran-features.cpp
    A flang/test/Semantics/c_loc01-relaxed.f90
    M flang/test/Semantics/c_loc01.f90

  Log Message:
  -----------
  [flang][semantics] Add a flag to relax some of the semantic constraints on C_LOC (#195112)

This PR adds a flag that downgrades some of the semantic constraints on
C_LOC so that it can be used more like LOC. Without the flag behavior is
unmodified, with the flag the constraint that the address be object
pointer or target is removed. There are other constraints we might
consider relaxing, but I think this is a start.



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