re PR c/71583 (ICE on invalid code on x86_64-linux-gnu (in c_parser_postfix_expressio...
authorMarek Polacek <polacek@redhat.com>
Fri, 29 Jul 2016 11:48:36 +0000 (11:48 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Fri, 29 Jul 2016 11:48:36 +0000 (11:48 +0000)
commita5b5c8b62494c0089bfc60ad5dfeae4e7f4c6690
tree82438dd0eee48ce62911adc53aee6ffa7ce76d1d
parent0c4c49092a6bb3b9ec716c42194183b111e5d71e
re PR c/71583 (ICE on invalid code on x86_64-linux-gnu (in c_parser_postfix_expression_after_paren_type, at c/c-parser.c:8192))

PR c/71583
* c-parser.c (c_parser_postfix_expression_after_paren_type): Also
check expr.value.

* gcc.dg/noncompile/pr71583.c: New test.

From-SVN: r238861
gcc/c/ChangeLog
gcc/c/c-parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/noncompile/pr71583.c [new file with mode: 0644]