[flang-commits] [flang] 3838245 - [flang][runtime] Fix error message
Peter Klausler via flang-commits
flang-commits at lists.llvm.org
Thu Aug 18 14:45:55 PDT 2022
Author: Peter Klausler
Date: 2022-08-18T14:41:19-07:00
New Revision: 3838245dc46c7bbed585191c6a42ea28b32c0893
URL: https://github.com/llvm/llvm-project/commit/3838245dc46c7bbed585191c6a42ea28b32c0893
DIFF: https://github.com/llvm/llvm-project/commit/3838245dc46c7bbed585191c6a42ea28b32c0893.diff
LOG: [flang][runtime] Fix error message
A literal % character in an error message needs to be doubled
so that it appears in the output of snprintf().
Differential Revision: https://reviews.llvm.org/D132158
Added:
Modified:
flang/runtime/namelist.cpp
Removed:
################################################################################
diff --git a/flang/runtime/namelist.cpp b/flang/runtime/namelist.cpp
index 2257fa5f487d..261492ba138b 100644
--- a/flang/runtime/namelist.cpp
+++ b/flang/runtime/namelist.cpp
@@ -329,7 +329,7 @@ static bool HandleComponent(IoStatementState &io, Descriptor &desc,
}
} else {
handler.SignalError("NAMELIST component reference of input group item %s "
- "has no name after '%'",
+ "has no name after '%%'",
name);
}
return false;
More information about the flang-commits
mailing list