http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59378

--- Comment #5 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
I wonder whether the following could be the right thing to do.

--- a/gcc/cp/pt.c
+++ b/gcc/cp/pt.c
@@ -12823,6 +12823,9 @@ tsubst_copy (tree t, tree args, tsubst_flags_t
complain, tree in_decl)
         in response to the saved STMT_IS_FULL_EXPR_P setting.  */
       gcc_unreachable ();

+    case SAVE_EXPR:
+      return tsubst_copy (TREE_OPERAND (t, 0), args, complain, in_decl);
+
     case OFFSET_REF:
       r = build2
        (code, tsubst (TREE_TYPE (t), args, complain, in_decl),

Reply via email to