On Wed, 24 Aug 2016, Tom de Vries wrote:
> This patch makes sure that both errors are given for the last example, by
> moving the error call from gimplify_va_arg_expr to build_va_arg.
OK.
--
Joseph S. Myers
jos...@codesourcery.com
Hi,
I.
Consider test-case:
...
struct A {};
void
foo (void)
{
__builtin_va_arg (0, A);
}
...
Compiling this with g++ gives the error:
...
error: first argument to ‘va_arg’ not of type ‘va_list’
...
II.
Now we add ++ in front of the expression, and get:
...
struct A {};
void
foo (void)
{