[all-commits] [llvm/llvm-project] b6fce8: [flang] Fix bogus errors from SIZE/SHAPE/UBOUND on...
Peter Klausler via All-commits
all-commits at lists.llvm.org
Thu Jun 23 10:32:44 PDT 2022
Author: Peter Klausler <pklausler at nvidia.com>
Date: 2022-06-23 (Thu, 23 Jun 2022)
[flang] Fix bogus errors from SIZE/SHAPE/UBOUND on assumed-shape
While it is indeed an error to use SIZE, SHAPE, or UBOUND on an
assumed-shape dummy argument without also supplying a DIM= argument
to the intrinsic function, it is *not* an error to use these intrinsic
functions on sections or expressions of such arrays. Refine the test
used for the error message.
Differential Revision: https://reviews.llvm.org/D128391
More information about the All-commits