PR c++/40566
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 30 Jun 2009 22:04:36 +0000 (22:04 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 30 Jun 2009 22:04:36 +0000 (22:04 +0000)
commit57d0100fbd6823e5c9715d3f46030484a7667371
tree22d4472aed1465f326e3cc594adf1560e23c69d9
parentc899341f16da17859b9a36a8839ce1c49d7420df
PR c++/40566
* convert.c (convert_to_integer) <case COND_EXPR>: Don't convert
to type arguments that have void type.

* g++.dg/parse/cond5.C: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@149121 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/convert.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/parse/cond5.C [new file with mode: 0644]