diff options
author | Peter Klausler <pklausler@nvidia.com> | 2025-08-13 14:37:41 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-08-13 14:37:41 -0700 |
commit | 925db844cb47be46f12e6f8b3696e22a9925e986 (patch) | |
tree | 8f20356908e72100fda77f45bb39bc33ec10d3c4 /llvm/lib/ObjCopy/ELF/ELFObject.cpp | |
parent | 08eff57444343e4081690f7947fd81f5ea862a86 (diff) | |
download | llvm-925db844cb47be46f12e6f8b3696e22a9925e986.zip llvm-925db844cb47be46f12e6f8b3696e22a9925e986.tar.gz llvm-925db844cb47be46f12e6f8b3696e22a9925e986.tar.bz2 |
[flang][runtime] Handle NAN(...) in namelist input (#153101)
The various per-type functions for list-directed (including namelist)
input editing all call a common function to detect whether the next
token of input is the name of a namelist item. This check simply
determines whether this next token looks like an identifier followed by
'=', '(', or '%', and this fails when the next item of input is a NAN
with parenthesized stuff afterwards. Make the check smarter so that it
ensures that any upcoming possible identifier is actually the name of an
item in the namelist group. (And that's tricky too when the group has an
array item named "nan" and the upcoming input is "nan("; see the
newly-added unit test case.)
Fixes https://github.com/llvm/llvm-project/issues/152538.
more
Diffstat (limited to 'llvm/lib/ObjCopy/ELF/ELFObject.cpp')
0 files changed, 0 insertions, 0 deletions