diff options
author | Peter Klausler <35819229+klausler@users.noreply.github.com> | 2023-11-13 14:52:51 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-13 14:52:51 -0800 |
commit | ec4ba0f5fe83c0e90ae6a56ffd417a4603e71501 (patch) | |
tree | e458ea00a6dfc52ab0f6e6aa628526e7d6e06d82 /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | 9652e9b7417e249cd932badb808c9806d19601fe (diff) | |
download | llvm-ec4ba0f5fe83c0e90ae6a56ffd417a4603e71501.zip llvm-ec4ba0f5fe83c0e90ae6a56ffd417a4603e71501.tar.gz llvm-ec4ba0f5fe83c0e90ae6a56ffd417a4603e71501.tar.bz2 |
[flang][runtime] Correct automatic parenthesized format repetition case (#71436)
In Fortran, a format automatically repeats, with a line break, until all
the data items of a data transfer statement have been consumed. PRINT
"(3I4)", 1, 2, 3, 4, 5, 6 prints two lines, for example, three values
each.
When there are nested parentheses in a format, the rightmost set of
parentheses at the top level are used for automatic repetition. PRINT
"(I4,2(I4))" 1, 2, 3, 4, 5, 6, 7 print three lines, with three values on
the first and two each on the later ones.
Fix a bug in format interpretation that causes the detection of the
"rightmost" set of parentheses to take place on each pass, leading to
problems when parentheses are even further nested.
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions