Commit 099b9334 by Jason Merrill Committed by Jason Merrill

* pt.c (tsubst) [DECLTYPE_TYPE]: Use tsubst_copy_and_build.

From-SVN: r197983
parent 4da97565
2013-04-15 Jason Merrill <jason@redhat.com> 2013-04-15 Jason Merrill <jason@redhat.com>
* pt.c (tsubst) [DECLTYPE_TYPE]: Use tsubst_copy_and_build.
PR c++/52748 PR c++/52748
* pt.c (tsubst) [DECLTYPE_TYPE]: If ~id is an expression * pt.c (tsubst) [DECLTYPE_TYPE]: If ~id is an expression
rather than a destructor name, it isn't an unqualified-name. rather than a destructor name, it isn't an unqualified-name.
......
...@@ -11770,9 +11770,10 @@ tsubst (tree t, tree args, tsubst_flags_t complain, tree in_decl) ...@@ -11770,9 +11770,10 @@ tsubst (tree t, tree args, tsubst_flags_t complain, tree in_decl)
++cp_unevaluated_operand; ++cp_unevaluated_operand;
++c_inhibit_evaluation_warnings; ++c_inhibit_evaluation_warnings;
type = tsubst_expr (DECLTYPE_TYPE_EXPR (t), args, type = tsubst_copy_and_build (DECLTYPE_TYPE_EXPR (t), args,
complain|tf_decltype, in_decl, complain|tf_decltype, in_decl,
/*integral_constant_expression_p=*/false); /*function_p*/false,
/*integral_constant_expression*/false);
--cp_unevaluated_operand; --cp_unevaluated_operand;
--c_inhibit_evaluation_warnings; --c_inhibit_evaluation_warnings;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment