[flang] Check constraints on passed-object dummy argument
The passed-object dummy argument cannot be checked until the interfaces of contained subprograms are known. To accomplish this, add `FinishSpecificationPart` pass to run after all specification parts have been analyzed but before any of the execution parts. This visits all derived types defined in each scope and performs the checks on each procedure component and procedure binding. Add a flag to `ParamValue` to distinguish kind from len parameters. Fix some tests that had errors we now detect. Original-commit: flang-compiler/f18@4789643c5bdbda8206cc1873bc56735b11953227 Reviewed-on: https://github.com/flang-compiler/f18/pull/521
Loading
Please sign in to comment