[all-commits] [llvm/llvm-project] 816a5e: [flang] Add semantics support for Fortran 2023 con...

Vineet Kumar via All-commits all-commits at lists.llvm.org
Wed Jul 15 09:21:11 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 816a5eacc4407e091a76d0205a8221ade044f439
      https://github.com/llvm/llvm-project/commit/816a5eacc4407e091a76d0205a8221ade044f439
  Author: Vineet Kumar <173554+vntkmr at users.noreply.github.com>
  Date:   2026-07-15 (Wed, 15 Jul 2026)

  Changed paths:
    M flang/include/flang/Evaluate/call.h
    M flang/include/flang/Evaluate/fold.h
    M flang/include/flang/Evaluate/shape.h
    M flang/include/flang/Evaluate/traverse.h
    M flang/include/flang/Evaluate/type.h
    M flang/include/flang/Semantics/expression.h
    M flang/lib/Evaluate/call.cpp
    M flang/lib/Evaluate/characteristics.cpp
    M flang/lib/Evaluate/fold-implementation.h
    M flang/lib/Evaluate/fold.cpp
    M flang/lib/Evaluate/formatting.cpp
    M flang/lib/Evaluate/intrinsics.cpp
    M flang/lib/Evaluate/shape.cpp
    M flang/lib/Evaluate/tools.cpp
    M flang/lib/Evaluate/type.cpp
    M flang/lib/Lower/ConvertCall.cpp
    M flang/lib/Parser/program-parsers.cpp
    M flang/lib/Semantics/check-call.cpp
    M flang/lib/Semantics/expression.cpp
    A flang/test/Evaluate/fold-conditional-arg.f90
    M flang/test/Semantics/conditional-arg.f90

  Log Message:
  -----------
  [flang] Add semantics support for Fortran 2023 conditional arguments (F2023 R1526-R1528) (#195345)

This PR
- Adds semantic analysis for F2023 conditional arguments (F2023
R1526-R1528), enforcing constraints F2023 C1538-C1545.
- Adds shape handling and folding for conditional args.
- Adds semantic tests.
(More details in commit messages)

This PR does not implement lowering to HLFIR; That will be a separate
PR.

AI use disclaimer: The changes in this PR were substantially
    generated with the assistance of AI (claude opus 4.6 via Github
CoPilot). In accordance with the LLVM project’s AI use policy, I have
    reviewed and tested the code to the best of my ability.



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