[Bug c/77398] first argument to va_arg not of type va_list error hidden by other error
vries at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Aug 29 16:42:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77398
--- Comment #5 from Tom de Vries <vries at gcc dot gnu.org> ---
Author: vries
Date: Mon Aug 29 16:41:33 2016
New Revision: 239827
URL: https://gcc.gnu.org/viewcvs?rev=239827&root=gcc&view=rev
Log:
Handle errors in both args of va_arg
2016-08-29 Tom de Vries <tom@codesourcery.com>
PR c/77398
* c-common.c (build_va_arg): Add first argument error. Build va_arg
with error_mark_node as va_list instead of with illegal va_list.
* gimplify.c (gimplify_va_arg_expr): Replace first argument type error
with assert.
* g++.dg/ext/va-arg1.C: Add error check for illegal first argument.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/c-family/ChangeLog
trunk/gcc/c-family/c-common.c
trunk/gcc/gimplify.c
trunk/gcc/testsuite/ChangeLog
trunk/gcc/testsuite/g++.dg/ext/va-arg1.C
More information about the Gcc-bugs
mailing list