[all-commits] [llvm/llvm-project] eb1413: [flang] Correct interaction between generics and i...
Peter Klausler via All-commits
all-commits at lists.llvm.org
Thu Apr 14 13:56:23 PDT 2022
Author: Peter Klausler <pklausler at nvidia.com>
Date: 2022-04-14 (Thu, 14 Apr 2022)
[flang] Correct interaction between generics and intrinsics
Fortran allows a generic interface to have he same name as an
intrinsic procedure. If the intrinsic is explicitly marked with
the INTRINSIC attribute, restrictions apply (C848) - the generic
must contain only functions or subroutines, depending on the
intrinsic. Explicit or not, the generic overrides the intrinsic,
but the intrinsic behavior must still be available for calls
whose actual arguments do not match any of the specific procedures.
Semantics was not checking constraint C848, and it didn't allow
an explicit INTRINSIC attribute on a name of a generic interface.
Differential Revision: https://reviews.llvm.org/D123713
More information about the All-commits