c/98200 - improve error recovery for GIMPLE FE
authorRichard Biener <rguenther@suse.de>
Wed, 9 Dec 2020 08:56:59 +0000 (09:56 +0100)
committerRichard Biener <rguenther@suse.de>
Wed, 9 Dec 2020 10:45:48 +0000 (11:45 +0100)
commit42bdf814493c2c39e7a6bd3fb2dd4491352ce5d9
treeb6bb740b240055a5fe54dc9f89de1433ee1e280d
parent1cb2d1d5ce178cb68f0bd475299d2e0b25a4a756
c/98200 - improve error recovery for GIMPLE FE

This avoids ICEing by making sure to propagate error early.

2020-12-09  Richard Biener  <rguenther@suse.de>

PR c/98200
gcc/c/
* gimple-parser.c (c_parser_gimple_postfix_expression): Return
early on error.

gcc/testsuite/
* gcc.dg/gimplefe-error-8.c: New testcase.
gcc/c/gimple-parser.c
gcc/testsuite/gcc.dg/gimplefe-error-8.c [new file with mode: 0644]