[flang-commits] [PATCH] D132158: [flang][runtime] Fix error message

Peter Klausler via Phabricator via flang-commits flang-commits at lists.llvm.org
Thu Aug 18 11:20:10 PDT 2022


klausler created this revision.
klausler added a reviewer: vdonaldson.
klausler added a project: Flang.
Herald added a subscriber: jdoerfert.
Herald added a project: All.
klausler requested review of this revision.

A literal % character in an error message needs to be doubled
so that it appears in the output of snprintf().


https://reviews.llvm.org/D132158

Files:
  flang/runtime/namelist.cpp


Index: flang/runtime/namelist.cpp
===================================================================
--- flang/runtime/namelist.cpp
+++ flang/runtime/namelist.cpp
@@ -329,7 +329,7 @@
     }
   } else {
     handler.SignalError("NAMELIST component reference of input group item %s "
-                        "has no name after '%'",
+                        "has no name after '%%'",
         name);
   }
   return false;


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D132158.453722.patch
Type: text/x-patch
Size: 422 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20220818/24a962e3/attachment-0001.bin>


More information about the flang-commits mailing list