diff options
author | Muhammad Mahad <mahadtxt@gmail.com> | 2023-09-17 16:58:51 +0500 |
---|---|---|
committer | Philip Herron <philip.herron@embecosm.com> | 2023-09-17 15:57:23 +0000 |
commit | a2d525016277f5f51c452e02c5fb2a0dcf02c643 (patch) | |
tree | ab38060732290b3bee70805233557f8d6fccf6a6 /gcc/rust/backend/rust-constexpr.cc | |
parent | e6b2c1aea47dd2da3345d2b88d303441c2f55506 (diff) | |
download | gcc-a2d525016277f5f51c452e02c5fb2a0dcf02c643.zip gcc-a2d525016277f5f51c452e02c5fb2a0dcf02c643.tar.gz gcc-a2d525016277f5f51c452e02c5fb2a0dcf02c643.tar.bz2 |
gccrs: [E0617] attempt for invalid type variable in variadic function
There are some certain rust types must be cast before
passing them to a variadic function, because of arcane
ABI rules dictated by the C standard. To fix the error,
cast the value to the type specified by the error message.
gcc/rust/ChangeLog:
* typecheck/rust-tyty-call.cc (TypeCheckCallExpr::visit):
Added ErrorCode & more fixit hints.
gcc/testsuite/ChangeLog:
* rust/compile/variadic.rs: Added new checks.
Signed-off-by: Muhammad Mahad <mahadtxt@gmail.com>
Diffstat (limited to 'gcc/rust/backend/rust-constexpr.cc')
0 files changed, 0 insertions, 0 deletions