]> git.ipfire.org Git - thirdparty/gcc.git/commit
gccrs: [E0045] Variadic Parameters Used on Non-C ABI Function
authorMuhammad Mahad <mahadtxt@gmail.com>
Wed, 19 Jul 2023 10:49:25 +0000 (15:49 +0500)
committerArthur Cohen <arthur.cohen@embecosm.com>
Tue, 16 Jan 2024 17:56:00 +0000 (18:56 +0100)
commitda58dc1a33dea1fea05636003118ef8d50fdb5f7
treebe18705d4b69e41abca3f2785322caaa4c449ccb
parent5141707b5b5dcacde76dd0760f6604451f06ef85
gccrs: [E0045] Variadic Parameters Used on Non-C ABI Function

Added error code support for using variadic parameters used
on Non-C ABI function. Fixes #2382

gcc/rust/ChangeLog:

* typecheck/rust-hir-type-check-implitem.cc (TypeCheckTopLevelExternItem::visit):
Added check for error code support.

gcc/testsuite/ChangeLog:

* rust/compile/abi-vardaic.rs: New test.

Signed-off-by: Muhammad Mahad <mahadtxt@gmail.com>
gcc/rust/typecheck/rust-hir-type-check-implitem.cc
gcc/testsuite/rust/compile/abi-vardaic.rs [new file with mode: 0644]