[all-commits] [llvm/llvm-project] 50a407: [flang] Catch semantic error with LBOUND/UBOUND (#...
Peter Klausler via All-commits
all-commits at lists.llvm.org
Mon Aug 18 14:46:00 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 50a40738d65e6c3df83777f39503684eedd1a559
https://github.com/llvm/llvm-project/commit/50a40738d65e6c3df83777f39503684eedd1a559
Author: Peter Klausler <pklausler at nvidia.com>
Date: 2025-08-18 (Mon, 18 Aug 2025)
Changed paths:
M flang/lib/Evaluate/intrinsics.cpp
M flang/test/Evaluate/errors01.f90
Log Message:
-----------
[flang] Catch semantic error with LBOUND/UBOUND (#154184)
The "ARRAY=" argument to these intrinsics cannot be scalar, whether
"DIM=" is present or not. (Allowing the "ARRAY=" argument to be scalar
when "DIM=" is absent would be a conceivable extension returning an
empty result array, like SHAPE() does with extents, but it doesn't seem
useful in a programming language without compilation-time rank
polymorphism apart from assumed-rank dummy arguments, and those are
supported.)
Fixes https://github.com/llvm/llvm-project/issues/154044.
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