PR c/54559
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 13 Sep 2012 16:57:15 +0000 (16:57 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 13 Sep 2012 16:57:15 +0000 (16:57 +0000)
commitc708c6ef5dc101050a1d5902a24afc2d838a12d1
treedceaecf6caccc38202d585c1f0c520e92dbf4fbb
parent56d581e9cde5c36d15b6d859abf6b2ea99f64ea0
PR c/54559
* c-typeck.c (c_finish_return): Do convert to BOOLEAN_TYPE or
COMPLEX_TYPE with in_late_binary_op set temporarily to true.

* gcc.c-torture/compile/pr54559.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@191270 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/c/ChangeLog
gcc/c/c-typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/compile/pr54559.c [new file with mode: 0644]