re PR c++/86184 (Conditional expression with omitted operand cannot use rvalue of...
authorMarek Polacek <polacek@redhat.com>
Fri, 29 Jun 2018 15:25:14 +0000 (15:25 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Fri, 29 Jun 2018 15:25:14 +0000 (15:25 +0000)
commitdd2a449867efaef1d2daceadab823d638a7dabcf
treebb9860fbf06e673b0e34f75ede9a6e01137fa820
parent1f2bb38a85710f650d1ea87f0765cb50e19c3212
re PR c++/86184 (Conditional expression with omitted operand cannot use rvalue of type convertible to bool)

PR c++/86184
* tree.c (cp_save_expr): Don't call save_expr for TARGET_EXPRs.

* g++.dg/ext/cond3.C: New test.

From-SVN: r262254
gcc/cp/ChangeLog
gcc/cp/tree.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/ext/cond3.C [new file with mode: 0644]