Re: [PATCH, PR71602] Give error for invalid va_list argument to va_arg

2016-06-23 Thread Jason Merrill
On Thu, Jun 23, 2016 at 1:27 PM, Tom de Vries wrote: > Hi, > > this patch fixes PR71602, a 6/7 regression. > > Consider this test-case: > ... > __builtin_va_list *pap; > > void > fn1 (void) > { > __builtin_va_arg(pap, double); > } > ... > > The testcase is invalid, because we're not passing a va_

[PATCH, PR71602] Give error for invalid va_list argument to va_arg

2016-06-23 Thread Tom de Vries
Hi, this patch fixes PR71602, a 6/7 regression. Consider this test-case: ... __builtin_va_list *pap; void fn1 (void) { __builtin_va_arg(pap, double); } ... The testcase is invalid, because we're not passing a va_list as first argument of va_arg, but a va_list*. When compiling for x86_64 -m