diff options
author | Muhammad Mahad <mahadtxt@gmail.com> | 2023-09-17 16:58:51 +0500 |
---|---|---|
committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2024-01-16 19:04:37 +0100 |
commit | 718b65a93d194a97a88f96780b97023ce9ed9378 (patch) | |
tree | c32bda7796d429dffc97998569cbc77c18cd039e /gcc/rust/backend/rust-constexpr.cc | |
parent | 95703bb75efc3ca0300b78ab9d3f4d544faad4b6 (diff) | |
download | gcc-718b65a93d194a97a88f96780b97023ce9ed9378.zip gcc-718b65a93d194a97a88f96780b97023ce9ed9378.tar.gz gcc-718b65a93d194a97a88f96780b97023ce9ed9378.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