PR c++/71711 - mangle C++1z fold-expressions.
authorJason Merrill <jason@redhat.com>
Fri, 15 Jul 2016 18:38:23 +0000 (14:38 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Fri, 15 Jul 2016 18:38:23 +0000 (14:38 -0400)
commitaa30dfadf3234caa8a29ef23ddc5932101a0e430
tree570594e330f0c11c2307922ac7864b02d6a70bdd
parent34bbc4c502157fb08e6eba1d09380e2599ec3720
PR c++/71711 - mangle C++1z fold-expressions.

* operators.def: Add *_FOLD_EXPR.
* cp-tree.h (FOLD_EXPR_P): Parenthesize.
* mangle.c (write_expression): Handle fold-expressions.
* pt.c (tsubst_unary_left_fold, tsubst_binary_left_fold)
(tsubst_unary_right_fold, tsubst_binary_right_fold): Handle
partial instantiation.

From-SVN: r238390
gcc/cp/ChangeLog
gcc/cp/cp-tree.h
gcc/cp/mangle.c
gcc/cp/operators.def
gcc/cp/pt.c
gcc/testsuite/g++.dg/cpp1z/fold-mangle.C [new file with mode: 0644]