https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64372
Jonathan Wakely <redi at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Last reconfirmed|2016-11-23 00:00:00 |2019-1-2 --- Comment #12 from Jonathan Wakely <redi at gcc dot gnu.org> --- (In reply to Jason Merrill from comment #10) > Author: jason > Date: Tue May 15 21:56:29 2018 > New Revision: 260272 > > URL: https://gcc.gnu.org/viewcvs?rev=260272&root=gcc&view=rev > Log: > 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. > > Added: > trunk/gcc/testsuite/g++.dg/cpp1y/dr1560.C > Modified: > trunk/gcc/cp/ChangeLog > trunk/gcc/cp/call.c Jason, you added known to work = 9.0 but neither comment 0 nor comment 8 is fixed by this patch. Comment 11 might be a different issue, or might be the same and has a misleading diagnostic (there's no & operator in the code), but either way it also isn't fixed.