mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-19 16:59:53 +08:00
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
This commit is contained in:
parent
98d4b1a6fd
commit
ea333e1cea
@ -1,3 +1,8 @@
|
||||
2000-06-22 Nathan Sidwell <nathan@codesourcery.com>
|
||||
|
||||
* 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.
|
||||
|
||||
2000-06-20 Alexandre Petit-Bianco <apbianco@cygnus.com>
|
||||
|
||||
* class.c (push_lang_context): TYPE_NAME gets you to the Java
|
||||
|
@ -3838,6 +3838,9 @@ build_x_va_arg (expr, type)
|
||||
tree expr;
|
||||
tree type;
|
||||
{
|
||||
if (processing_template_decl)
|
||||
return build_min (VA_ARG_EXPR, type, expr);
|
||||
|
||||
type = complete_type_or_else (type, NULL_TREE);
|
||||
|
||||
if (expr == error_mark_node || !type)
|
||||
|
@ -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));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user