[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
Loading
Please sign in to comment