Original-commit: flang-compiler/f18@ca8f9611f5 Reviewed-on: https://github.com/flang-compiler/f18/pull/84