re PR c++/14083 (ICE in conditional expression operator with throw)
authorMark Mitchell <mark@codesourcery.com>
Fri, 13 Feb 2004 20:11:35 +0000 (20:11 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Fri, 13 Feb 2004 20:11:35 +0000 (20:11 +0000)
commit41dffe622d75043716fa6aaea7bba387751d7441
tree0203969aadadf5624994ab772a5d5415a8c1d75f
parent1daa84b6e2fee1548afaabb0d99fc797f1aa0f1c
re PR c++/14083 (ICE in conditional expression operator with throw)

PR c++/14083
* call.c (build_conditional_expr): Call force_rvalue on the
non-void operand in the case that one result is a throw-expression
and the other is not.

PR c++/14083
* g++.dg/eh/cond2.C: New test.

From-SVN: r77768
gcc/cp/ChangeLog
gcc/cp/call.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/eh/cond2.C [new file with mode: 0644]