re PR c++/11517 (g++ fails to properly convert pointer expressions in conditional...
authorMark Mitchell <mark@codesourcery.com>
Wed, 23 Jul 2003 18:44:43 +0000 (18:44 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Wed, 23 Jul 2003 18:44:43 +0000 (18:44 +0000)
commit6cf4d1bca0477bd223c8a368ba4b14d580ef1324
tree2aedf10c630310f865c13f931beff5398ead1c48
parenta08cb3a3740bf876e2590907900a875ea7e81986
re PR c++/11517 (g++ fails to properly convert pointer expressions in conditional expressions.)

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.

From-SVN: r69715
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]