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

--- Comment #4 from vries at gcc dot gnu.org ---
Minimal test-case test.c:
...
#include <stdarg.h>

long x;

void
f3 (int i, ...)
{
  va_list aps[10];
  va_start (aps[4], i);
  x = va_arg (aps[4], long);
  va_end (aps[4]);
}
...

or preprocessed:
...
typedef __builtin_va_list __gnuc_va_list;
typedef __gnuc_va_list va_list;

long x;

void
f3 (int i, ...)
{
  va_list aps[10];

  __builtin_va_start (aps[4], i);
  x = __builtin_va_arg(aps[4], long);
  __builtin_va_end(aps[4]));
}
...

Reply via email to