[Bug c/92833] ice for broken C code
cvs-commit at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Jan 16 23:43:00 GMT 2020
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92833
--- Comment #7 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Joseph Myers <jsm28@gcc.gnu.org>:
https://gcc.gnu.org/g:852f0ae80555238c425e33f98df5c7077694bd9f
commit r10-6026-g852f0ae80555238c425e33f98df5c7077694bd9f
Author: Kerem Kat <keremkat@gmail.com>
Date: Thu Jan 16 23:42:11 2020 +0000
Fix ICE caused by swallowing a token in c_parser_consume_token
This patch fixes ICE on invalid code, specifically files that have
conflict-marker-like signs before EOF.
PR c/92833
gcc/c/
* c-parser.c (c_parser_consume_token): Fix peeked token stack pop
to support 4 available tokens.
gcc/testsuite/
* c-c++-common/pr92833-1.c, c-c++-common/pr92833-2.c,
c-c++-common/pr92833-3.c, c-c++-common/pr92833-4.c: New tests.
More information about the Gcc-bugs
mailing list