PR c++/70584 - don't force indirection to an rvalue
authorJason Merrill <jason@redhat.com>
Tue, 24 May 2016 21:06:53 +0000 (17:06 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Tue, 24 May 2016 21:06:53 +0000 (17:06 -0400)
commit66f90a1761f1e819d1dbffff2056836b5d39d545
tree95fca72cd903c1c0c3ca197d74d3ecc22425ab16
parent732eb07625bc086833506374f1ce452096716874
PR c++/70584 - don't force indirection to an rvalue

* cp-gimplify.c (cp_fold_maybe_rvalue): Loop in case cp_fold
returns a decl.
(cp_fold) [INDIRECT_REF]: Don't fold to an rvalue.

From-SVN: r236670
gcc/cp/ChangeLog
gcc/cp/cp-gimplify.c