[flang] Warn about dangerous actual argument association with TARGET dummy arguments
The actual argument associated with a dummy argument with the TARGET attribute is not required to be itself a target or pointer, or even to be a variable, but in those cases, any pointer that is associated with the dummy argument during the execution of the procedure is either going to be invalid afterwards because it points to temporary storage that has since been deallocated or an optimization time bomb because it aliases an object that isn't a target. Add warnings for these cases. Differential Revision: https://reviews.llvm.org/D145089
Loading
Please sign in to comment