From: Jason Merrill Date: Thu, 20 Jun 2013 18:32:56 +0000 (-0400) Subject: * cp-tree.h (DECL_TEMPLATE_PARMS, DECL_TEMPLATE_RESULT) X-Git-Tag: releases/gcc-4.9.0~5301 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4ab013d93a27e19926e0dd3669768ddd93e4662b;p=thirdparty%2Fgcc.git * cp-tree.h (DECL_TEMPLATE_PARMS, DECL_TEMPLATE_RESULT) (DECL_TEMPLATE_INSTANTIATIONS, DECL_TEMPLATE_SPECIALIZATIONS): Use TEMPLATE_DECL_CHECK. From-SVN: r200262 --- diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index cc3fdde757b3..7c7a17f8a455 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,9 @@ +2013-06-20 Jason Merrill + + * cp-tree.h (DECL_TEMPLATE_PARMS, DECL_TEMPLATE_RESULT) + (DECL_TEMPLATE_INSTANTIATIONS, DECL_TEMPLATE_SPECIALIZATIONS): Use + TEMPLATE_DECL_CHECK. + 2013-06-19 Manuel Lopez-Ibanez PR c++/57638 diff --git a/gcc/cp/cp-tree.h b/gcc/cp/cp-tree.h index 2931ac566f02..41ef24d455bc 100644 --- a/gcc/cp/cp-tree.h +++ b/gcc/cp/cp-tree.h @@ -3683,13 +3683,15 @@ more_aggr_init_expr_args_p (const aggr_init_expr_arg_iterator *iter) TEMPLATE_PARM_INDEX for the parameter is available as the DECL_INITIAL (for a PARM_DECL) or as the TREE_TYPE (for a TYPE_DECL). */ -#define DECL_TEMPLATE_PARMS(NODE) DECL_NON_COMMON_CHECK (NODE)->decl_non_common.arguments +#define DECL_TEMPLATE_PARMS(NODE) \ + TEMPLATE_DECL_CHECK (NODE)->decl_non_common.arguments #define DECL_INNERMOST_TEMPLATE_PARMS(NODE) \ INNERMOST_TEMPLATE_PARMS (DECL_TEMPLATE_PARMS (NODE)) #define DECL_NTPARMS(NODE) \ TREE_VEC_LENGTH (DECL_INNERMOST_TEMPLATE_PARMS (NODE)) /* For function, method, class-data templates. */ -#define DECL_TEMPLATE_RESULT(NODE) DECL_RESULT_FLD (NODE) +#define DECL_TEMPLATE_RESULT(NODE) \ + DECL_RESULT_FLD (TEMPLATE_DECL_CHECK (NODE)) /* For a function template at namespace scope, DECL_TEMPLATE_INSTANTIATIONS lists all instantiations and specializations of the function so that tsubst_friend_function can reassign them to another template if we find @@ -3718,7 +3720,9 @@ more_aggr_init_expr_args_p (const aggr_init_expr_arg_iterator *iter) struct S1::S2'. This list is not used for other templates. */ -#define DECL_TEMPLATE_INSTANTIATIONS(NODE) DECL_VINDEX (NODE) +#define DECL_TEMPLATE_INSTANTIATIONS(NODE) \ + DECL_VINDEX (TEMPLATE_DECL_CHECK (NODE)) + /* For a class template, this list contains the partial specializations of this template. (Full specializations are not recorded on this list.) The TREE_PURPOSE holds the arguments used @@ -3730,7 +3734,8 @@ more_aggr_init_expr_args_p (const aggr_init_expr_arg_iterator *iter) specialization. This list is not used for other templates. */ -#define DECL_TEMPLATE_SPECIALIZATIONS(NODE) DECL_SIZE (NODE) +#define DECL_TEMPLATE_SPECIALIZATIONS(NODE) \ + DECL_SIZE (TEMPLATE_DECL_CHECK (NODE)) /* Nonzero for a DECL which is actually a template parameter. Keep these checks in ascending tree code order. */