[all-commits] [llvm/llvm-project] 7e1fff: [flang][runtime] Improve handling of short DATE_AN...

Peter Klausler via All-commits all-commits at lists.llvm.org
Tue Feb 10 09:21:53 PST 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7e1fff4d5040ed93372975d506cdecd889d70f6a
      https://github.com/llvm/llvm-project/commit/7e1fff4d5040ed93372975d506cdecd889d70f6a
  Author: Peter Klausler <pklausler at nvidia.com>
  Date:   2026-02-10 (Tue, 10 Feb 2026)

  Changed paths:
    M flang-rt/lib/runtime/time-intrinsic.cpp
    M flang/lib/Semantics/check-call.cpp
    A flang/test/Semantics/bug2203.f90

  Log Message:
  -----------
  [flang][runtime] Improve handling of short DATE_AND_TIME(VALUES=) (#180557)

When the actual argument associated with the VALUES= dummy argument of
the intrinsic subroutine DATE_AND_TIME has fewer than eight elements, we
crash with an internal error in the runtime.

With this patch, the compiler now checks the size of the vector at
compilation time, when it is known, and gracefully copes with a short
vector at execution time otherwise, without crashing.



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