This is an archive of the discontinued LLVM Phabricator instance.

[flang] Fix edge case with Hollerith
ClosedPublic

Authored by klausler on Aug 7 2020, 4:46 PM.

Details

Summary

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.

Diff Detail

Event Timeline

klausler created this revision.Aug 7 2020, 4:46 PM
Herald added a project: Restricted Project. · View Herald Transcript
klausler requested review of this revision.Aug 7 2020, 4:46 PM
PeteSteinfeld accepted this revision.Aug 7 2020, 7:23 PM

All builds, tests, and looks good.

This revision is now accepted and ready to land.Aug 7 2020, 7:23 PM
This revision was automatically updated to reflect the committed changes.