diff options
author | JoanVC <github-91yu@joanvc.cat> | 2024-09-10 21:52:50 +0200 |
---|---|---|
committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2025-03-19 15:32:10 +0100 |
commit | 5db515e56893efd82c048993123b3cb3f0667315 (patch) | |
tree | 3bf376e16ad3254c8c2bb4342a3f6e085810703e /gcc/rust/resolve/rust-ast-resolve-path.h | |
parent | da48816297db523cac4bd69aceafb7cafc7478e2 (diff) | |
download | gcc-5db515e56893efd82c048993123b3cb3f0667315.zip gcc-5db515e56893efd82c048993123b3cb3f0667315.tar.gz gcc-5db515e56893efd82c048993123b3cb3f0667315.tar.bz2 |
gccrs: [gccrs#3141] Fix incorrect handling of overflow in numeric types
Fixes gccrs#3141.
gcc/rust/ChangeLog:
* backend/rust-compile-expr.cc: Fix range checking for both integers and floats.
* hir/tree/rust-hir-expr.h: Add "negative_number" boolean to LiteralExpr class.
gcc/testsuite/ChangeLog:
* rust/compile/issue-3141.rs: New test.
Signed-off-by: Joan Vilardaga <github-91yu@joanvc.cat>
Diffstat (limited to 'gcc/rust/resolve/rust-ast-resolve-path.h')
0 files changed, 0 insertions, 0 deletions