From: Peter Klausler Date: Sun, 14 Aug 2022 17:02:30 +0000 (-0700) Subject: [flang][runtime] Fix error message X-Git-Tag: upstream/17.0.6~36088 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3838245dc46c7bbed585191c6a42ea28b32c0893;p=platform%2Fupstream%2Fllvm.git [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 --- 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;