[flang] Dial some errors down to warnings for ASSOCIATED()
When a procedure pointer is associated with a procedure target, f18 will emit hard error messages if the pointer is incompatible with the target in a way that would cause the program to not work if the procedure pointer were actually called. However, in the context of the ASSOCIATED() intrinsic, the compiler should not consider a query to be a compilation-time error if the pointer and the target are incompatible. The standard gives us sufficient wiggle room here to treat these cases as warnings. Attempts to use ASSOCIATED to test whether a procedure pointer is associated with a data object, or vice versa, remain errors. Differential Revision: https://reviews.llvm.org/D130384
Loading
Please sign in to comment