[flang-commits] [PATCH] D127792: [flang][runtime] Fix handling of output FORMAT('x' 'y')
Peter Klausler via Phabricator via flang-commits
flang-commits at lists.llvm.org
Wed Jun 15 14:28:17 PDT 2022
This revision was automatically updated to reflect the committed changes.
Closed by commit rG1a3ac586670d: [flang][runtime] Fix handling of output FORMAT('x' 'y') (authored by klausler).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D127792/new/
https://reviews.llvm.org/D127792
Files:
flang/runtime/format-implementation.h
Index: flang/runtime/format-implementation.h
===================================================================
--- flang/runtime/format-implementation.h
+++ flang/runtime/format-implementation.h
@@ -293,7 +293,7 @@
++offset_;
std::size_t chars{
static_cast<std::size_t>(&format_[offset_] - &format_[start])};
- if (PeekNext() == quote) {
+ if (offset_ < formatLength_ && format_[offset_] == quote) {
// subtle: handle doubled quote character in a literal by including
// the first in the output, then treating the second as the start
// of another character literal.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D127792.437338.patch
Type: text/x-patch
Size: 631 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20220615/0f8a4dae/attachment.bin>
More information about the flang-commits
mailing list