PR c++/90393 - ICE with thow in ?:
My previous patch for 64372 was incomplete: it only stopped making the non-throw argument into an rvalue, lvalue_kind still considered the ?: expression to be an rvalue, leaving us worse than before. PR c++/64372, DR 1560 - Gratuitous lvalue-to-rvalue conversion in ?: * tree.c (lvalue_kind): Handle throw in one arm. * typeck.c (rationalize_conditional_expr): Likewise. (cp_build_modify_expr): Likewise. From-SVN: r274550
Showing
gcc/testsuite/g++.dg/expr/cond15.C
0 → 100644
gcc/testsuite/g++.dg/expr/cond16.C
0 → 100644
Please
register
or
sign in
to comment