[flang-commits] [PATCH] D114297: [flang] Remove typo that affected complex namelist input

Peter Klausler via Phabricator via flang-commits flang-commits at lists.llvm.org
Fri Nov 19 16:05:44 PST 2021


klausler created this revision.
klausler added a reviewer: Renaud-K.
klausler added a project: Flang.
Herald added a subscriber: jdoerfert.
klausler requested review of this revision.

A recent patch to real/complex formatted input included what must
have been an editing hiccup: "++ ++p" instead of "++p".  This
compiles, and it broke the consumption of the trailing ')' of a
complex value in namelist input by skipping over the character.


https://reviews.llvm.org/D114297

Files:
  flang/runtime/edit-input.cpp


Index: flang/runtime/edit-input.cpp
===================================================================
--- flang/runtime/edit-input.cpp
+++ flang/runtime/edit-input.cpp
@@ -307,7 +307,7 @@
     if (p >= limit || *p != ')') {
       return false;
     }
-    for (++ ++p; p < limit && (*p == ' ' || *p == '\t'); ++p) {
+    for (++p; p < limit && (*p == ' ' || *p == '\t'); ++p) {
     }
   }
   if (p < limit) {


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D114297.388660.patch
Type: text/x-patch
Size: 413 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20211120/7be90927/attachment.bin>


More information about the flang-commits mailing list