Original-commit: flang-compiler/f18@50ce01185f Reviewed-on: https://github.com/flang-compiler/f18/pull/301