PR c/40033
authorjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 24 Oct 2009 00:44:17 +0000 (00:44 +0000)
committerjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 24 Oct 2009 00:44:17 +0000 (00:44 +0000)
commit9fa2814c2a061291157a9a163999ff8a783ace79
tree389dcf1ce9bb16d2ed2b5109dd50c21b8ac5c1b3
parent57f6c9135137f940ae48d15b31d4c5b1ae9b0dab
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@153522 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/c-typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/noncompile/pr40033-1.c [new file with mode: 0644]