Original-commit: flang-compiler/f18@0575b54cc7 Reviewed-on: https://github.com/flang-compiler/f18/pull/1068