diff options
author | Philip Herron <herron.philip@googlemail.com> | 2024-11-26 15:33:35 +0000 |
---|---|---|
committer | Philip Herron <philip.herron@embecosm.com> | 2024-11-27 22:41:12 +0000 |
commit | 2aff74974ec2400dbccc103d8f05d9e14def87b3 (patch) | |
tree | 307f99a5bd97932f00a419dc9b0f3261435b02a5 /gcc/rust/rust-gcc.cc | |
parent | c11ee4f56266512171fb77d6bcaf37f390e5ad30 (diff) | |
download | gcc-2aff74974ec2400dbccc103d8f05d9e14def87b3.zip gcc-2aff74974ec2400dbccc103d8f05d9e14def87b3.tar.gz gcc-2aff74974ec2400dbccc103d8f05d9e14def87b3.tar.bz2 |
gccrs: allow casts from numeric types to floats
Fixes Rust-GCC#3261
gcc/rust/ChangeLog:
* typecheck/rust-casts.cc (TypeCastRules::cast_rules): allow casts to float
gcc/testsuite/ChangeLog:
* rust/compile/issue-3261.rs: New test.
Signed-off-by: Philip Herron <herron.philip@googlemail.com>
Diffstat (limited to 'gcc/rust/rust-gcc.cc')
0 files changed, 0 insertions, 0 deletions