This is an archive of the discontinued LLVM Phabricator instance.

Don't split NumericConstant tokens if a digit separator proceeds a period.
AbandonedPublic

Authored by craig.topper on Jan 27 2016, 10:15 PM.

Details

Reviewers
rsmith
Summary

Currently we split a token if a digit separator proceeds a period. This causes the digit separator to be interpreted instead as the start of a character constant token. gcc seems to keep it as a whole token for this case and issues an error for a digit separator being adjacent to a period.

Parts of NumericLiteralParser already expected that the digit separator could appear before a period and attempted to diagnose accordingly.

Diff Detail

Event Timeline

craig.topper retitled this revision from to Don't split NumericConstant tokens if a digit separator proceeds a period..
craig.topper updated this object.
craig.topper added a reviewer: rsmith.
craig.topper added a subscriber: cfe-commits.
craig.topper abandoned this revision.Nov 23 2016, 7:56 PM