Original-commit: flang-compiler/f18@66ecc10722 Reviewed-on: https://github.com/flang-compiler/f18/pull/42