PR c++/64372 - CWG 1560, gratuitous lvalue-rvalue conversion in ?:
authorJason Merrill <jason@redhat.com>
Tue, 15 May 2018 21:56:29 +0000 (17:56 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Tue, 15 May 2018 21:56:29 +0000 (17:56 -0400)
commit30a52a6d629ebe46c788940c1cbe518e4d5cbd5a
tree33a71d286617d3c0aadf84776d61d8355ec2e226
parent275605696b6754f178af04ef6187b1faed6092e9
PR c++/64372 - CWG 1560, gratuitous lvalue-rvalue conversion in ?:

* call.c (build_conditional_expr_1): Don't force_rvalue when one arm
is a throw-expression.

From-SVN: r260272
gcc/cp/ChangeLog
gcc/cp/call.c
gcc/testsuite/g++.dg/cpp1y/dr1560.C [new file with mode: 0644]