]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/c/c-typeck.c
re PR c/40033 (ICE with invalid statement expression)
authorJoseph Myers <joseph@codesourcery.com>
Sat, 24 Oct 2009 00:44:17 +0000 (01:44 +0100)
committerJoseph Myers <jsm28@gcc.gnu.org>
Sat, 24 Oct 2009 00:44:17 +0000 (01:44 +0100)
commit26d8af3556969fc8eeda5adfe314553484ad9751
tree389dcf1ce9bb16d2ed2b5109dd50c21b8ac5c1b3
parent5e86b38ccb7f753ffe54b2e2a46c22a8f54cb51b
re PR c/40033 (ICE with invalid statement expression)

PR c/40033
* c-typeck.c (c_finish_stmt_expr): Do not wrap error_mark_node in
a C_MAYBE_CONST_EXPR.

testsuite:
* gcc.dg/noncompile/pr40033-1.c: New test.

From-SVN: r153522
gcc/ChangeLog
gcc/c-typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/noncompile/pr40033-1.c [new file with mode: 0644]