[PATCH] D85571: [flang] Fix edge case with Hollerith
Peter Klausler via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 7 16:46:55 PDT 2020
klausler created this revision.
klausler added reviewers: sscalpone, PeteSteinfeld.
klausler added a project: Flang.
Herald added a reviewer: jdoerfert.
Herald added a reviewer: DavidTruby.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
klausler requested review of this revision.
To prevent mistokenization of CHARACTER*2HXY as a Hollerith
literal constant while allowing it in DATA A/2*2HXY/, there's
a little state that tracks whether a / has been seen earlier
in the same statement. But it was being reset on each line,
not statement, so Hollerith in a DATA statement continuation
line was incorrectly tokenized. Fixed.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D85571
Files:
flang/lib/Parser/prescan.cpp
flang/lib/Parser/prescan.h
flang/test/Preprocessing/hollerith.f
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D85571.284092.patch
Type: text/x-patch
Size: 3753 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200807/4c7b1a5c/attachment.bin>
More information about the llvm-commits
mailing list