re PR c/69798 (ICE on invalid code on x86_64-linux-gnu in c_parser_braced_init, at...
authorMarek Polacek <polacek@redhat.com>
Fri, 4 Mar 2016 13:26:25 +0000 (13:26 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Fri, 4 Mar 2016 13:26:25 +0000 (13:26 +0000)
commit7ff6ca3899e0cae8460f7dc30770002559bc0553
tree4ca9771c72769236beaba3b26955cd20839b2e53
parenta6bf62d5f85e91c7545bfc5cf2f8a5364814423b
re PR c/69798 (ICE on invalid code on x86_64-linux-gnu in c_parser_braced_init, at c/c-parser.c:4338)

PR c/69798
* c-parser.c (c_parser_postfix_expression): Call
c_parser_cast_expression rather than c_parser_postfix_expression.

* gcc.dg/cilk-plus/pr69798-1.c: New test.
* gcc.dg/cilk-plus/pr69798-2.c: New test.

From-SVN: r233965
gcc/c/ChangeLog
gcc/c/c-parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/cilk-plus/pr69798-1.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/cilk-plus/pr69798-2.c [new file with mode: 0644]