From 3838245dc46c7bbed585191c6a42ea28b32c0893 Mon Sep 17 00:00:00 2001 From: Peter Klausler Date: Sun, 14 Aug 2022 10:02:30 -0700 Subject: [PATCH] [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 --- flang/runtime/namelist.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flang/runtime/namelist.cpp b/flang/runtime/namelist.cpp index 2257fa5..261492b 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; -- 2.7.4