Unable to call variadic function with no named parameters even though it is useful since C23 #123773
Labels
A-FFI
Area: Foreign function interface (FFI)
C-bug
Category: This is a bug.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
T-lang
Relevant to the language team, which will review and decide on the PR/issue.
You have always been able to define variadic functions in C with no named parameters, but until C23 it was not useful because you could never access those arguments
Since C23 the
va_start
macro in C has been changed to no longer require a parameter name, so now being able to call variadic functions with no named parameters is actually usefulI would expect this to compile, if there was a function
foo
defined in C like soBut instead this does not compile
Meta
rustc --version --verbose
:The text was updated successfully, but these errors were encountered: