From ea333e1ceadfd7c0ecb64e47bb844cd2b5e6acc9 Mon Sep 17 00:00:00 2001 From: Nathan Sidwell Date: Thu, 22 Jun 2000 09:27:15 +0000 Subject: call.c (build_x_va_arg): Check if in a template decl. * call.c (build_x_va_arg): Check if in a template decl. * pt.c (tsubst_copy, case VA_ARG_EXPR): Use build_x_va_arg. From-SVN: r34645 --- gcc/cp/pt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gcc/cp/pt.c') diff --git a/gcc/cp/pt.c b/gcc/cp/pt.c index 70ad846..6fcc9e4 100644 --- a/gcc/cp/pt.c +++ b/gcc/cp/pt.c @@ -7099,7 +7099,7 @@ tsubst_copy (t, args, complain, in_decl) } case VA_ARG_EXPR: - return build_va_arg (tsubst_copy (TREE_OPERAND (t, 0), args, complain, + return build_x_va_arg (tsubst_copy (TREE_OPERAND (t, 0), args, complain, in_decl), tsubst (TREE_TYPE (t), args, complain, in_decl)); -- cgit v1.1