llvm-project
455de554 - [flang] Fix non-portable TYPE(*) usage in generic (#176235)

Commit
38 days ago
[flang] Fix non-portable TYPE(*) usage in generic (#176235) Fortran allows a scalar actual argument of any type to correspond with a TYPE(*) dummy argument that is an assumed-size array. This usage isn't portable, and it didn't work with a generic procedure with this compiler, only specific procedures. It affected at least one API in OpenMPI. Fix generic resolution to allow for this case, add a distinguishability test to detect generic interfaces that have ambiguous specific procedures due to it, and add an optional portability warning (off by default).
Author
Parents
Loading