[Bug c/71602] [6/7 regression] ICE on __builtin_va_arg in build_va_arg, at c-family/c-common.c:5810
vries at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Jun 21 05:40:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71602
vries at gcc dot gnu.org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |vries at gcc dot gnu.org
--- Comment #2 from vries at gcc dot gnu.org ---
It seems the test-case is illegal. Clang gives an error:
...
$ clang test.c -S
test.c:5:20: error: first argument to 'va_arg' is of type '__builtin_va_list *'
and not 'va_list'
__builtin_va_arg(pap, int);
^~~
1 error generated.
...
We should give an error instead of ICE-ing.
More information about the Gcc-bugs
mailing list