OSDN Git Service

PR c++/11517
authormmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 23 Jul 2003 18:44:43 +0000 (18:44 +0000)
committermmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 23 Jul 2003 18:44:43 +0000 (18:44 +0000)
commit9eb758917b0a79aa8cc8ce6083ea719763e5fbc2
tree2aedf10c630310f865c13f931beff5398ead1c48
parentedebdf40b1a5b97db45cc4bbec2b993dc7d08ac3
PR c++/11517
* call.c (build_conditional_expr): Use perform_implicit_conversion
and error_operand_p.  Robustify.
* typeck.c (build_unary_op): Use perform_implicit_conversion.

PR c++/11517
* g++.dg/expr/cond2.C: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@69715 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/call.c
gcc/cp/typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/expr/cond2.C [new file with mode: 0644]