Re: [PATCH, 1/4] Handle errors in both args of va_arg

2016-08-29 Thread Joseph Myers
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

[PATCH, 1/4] Handle errors in both args of va_arg

2016-08-23 Thread Tom de Vries
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) {