diff options
author | Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com> | 2023-10-31 15:23:45 +0100 |
---|---|---|
committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2024-01-16 19:13:15 +0100 |
commit | 348f028fc2957d13e828030119938b8fccb00fc3 (patch) | |
tree | f7f03d039aa260ecef8a09134f184b9d26f7c71b /gcc/cp | |
parent | 4bd9f1159ba054c9cacfd9a5cd0186c1791987d1 (diff) | |
download | gcc-348f028fc2957d13e828030119938b8fccb00fc3.zip gcc-348f028fc2957d13e828030119938b8fccb00fc3.tar.gz gcc-348f028fc2957d13e828030119938b8fccb00fc3.tar.bz2 |
gccrs: Fix float lexing and tuple index disambiguation
When a float has a floating point but no value after it, a zero was added
this lead to errors when trying to disambiguate a float into a tuple
index.
gcc/rust/ChangeLog:
* lex/rust-lex.cc (Lexer::parse_decimal_int_or_float): Remove
additional zero after empty floating point.
* parse/rust-parse-impl.h (Parser::left_denotation): Handle float with
empty floating point.
Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Diffstat (limited to 'gcc/cp')
0 files changed, 0 insertions, 0 deletions