https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117432

--- Comment #18 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to nightstrike from comment #16)
> On mingw-w64, the new testcase fails:
> 
> Excess errors:
> /tmp/gcc/testsuite/gcc.c-torture/execute/pr117432.c:35:15: error: macro
> 'va_start' requires 2 arguments, but only 1 given
> /tmp/gcc/testsuite/gcc.c-torture/execute/pr117432.c:35:3: error: 'va_start'
> undeclared (first use in this function)
> 
> The line in question is:
>   va_start (ap);
> 
> which as the error states, has only one argument instead of two.
> 
> Tested on 15.

I am suspect this is a bug in mingw's stdarg.h which does NOT support C23
va_start. IIRC there is a bug about mingw not using GCC's stdarg.h like it
should be but I can't find that bug report.

Reply via email to