re PR c++/88103 (Wrong value category when conditional expression result is used...
authorJakub Jelinek <jakub@redhat.com>
Tue, 4 Dec 2018 08:44:12 +0000 (09:44 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 4 Dec 2018 08:44:12 +0000 (09:44 +0100)
commit580b8d9b540761e4df47d22fbfc9372396db8748
treeae816e7bce27a5c49e457b707e062410154eb296
parent056775650ac086fb069e00415bf262e22f7579c5
re PR c++/88103 (Wrong value category when conditional expression result is used as object expression)

PR c++/88103
* typeck.c (build_class_member_access_expr): If unary_complex_lvalue
turned xvalue_p into non-xvalue_p, call move on it.

* g++.dg/cpp0x/rv-cond3.C: New test.

From-SVN: r266772
gcc/cp/ChangeLog
gcc/cp/typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/rv-cond3.C [new file with mode: 0644]