[Bug c++/86184] Conditional expression with omitted operand cannot use rvalue of type convertible to bool
mpolacek at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Jun 29 15:25:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86184
--- Comment #8 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Author: mpolacek
Date: Fri Jun 29 15:25:14 2018
New Revision: 262254
URL: https://gcc.gnu.org/viewcvs?rev=262254&root=gcc&view=rev
Log:
PR c++/86184
* tree.c (cp_save_expr): Don't call save_expr for TARGET_EXPRs.
* g++.dg/ext/cond3.C: New test.
Added:
trunk/gcc/testsuite/g++.dg/ext/cond3.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/tree.c
trunk/gcc/testsuite/ChangeLog
More information about the Gcc-bugs
mailing list