Lines Matching defs:complain

3876 				tsubst_flags_t complain,
3922 (parmparm, argparm, complain, in_decl, outer_args))
3937 (tsubst (TREE_TYPE (parm), outer_args, complain, in_decl),
3960 tsubst_flags_t complain,
4004 complain & tf_error);
4011 if (complain & tf_error)
4030 if (in_decl && (complain & tf_error))
4057 complain, in_decl,
4070 if (in_decl && (complain & tf_error))
4095 tree t = tsubst (TREE_TYPE (parm), args, complain, in_decl);
4097 if (invalid_nontype_parm_type_p (t, complain))
4102 will report errors, which we don't want when complain
4117 else if (val == error_mark_node && (complain & tf_error))
4140 tsubst_flags_t complain,
4161 if (complain & tf_error)
4199 complain, in_decl);
4206 if (complain & tf_error)
4211 arg, new_args, complain, i,
4500 tsubst_flags_t complain)
4556 if (complain & tf_error)
4564 || ((complain & tf_user) && !DECL_TEMPLATE_PARM_P (template)
4567 if (complain & tf_error)
4576 complain &= ~tf_user;
4608 complain,
4613 && check_instantiated_args (template, arglist2, complain)))
4679 complain,
4710 complain,
4769 complain))
4783 complain, in_decl);
4899 found = tsubst (template, arglist, complain, NULL_TREE);
6067 make_friend_class (type, friend_type, /*complain=*/false);
6090 add_friend (type, r, /*complain=*/false);
6138 tsubst_template_arg (tree t, tree args, tsubst_flags_t complain, tree in_decl)
6145 r = tsubst (t, args, complain, in_decl);
6148 r = tsubst_expr (t, args, complain, in_decl,
6158 tsubst_template_args (tree t, tree args, tsubst_flags_t complain, tree in_decl)
6170 new_arg = tsubst_template_args (orig_arg, args, complain, in_decl);
6172 new_arg = tsubst_template_arg (orig_arg, args, complain, in_decl);
6200 tsubst_template_parms (tree parms, tree args, tsubst_flags_t complain)
6237 parm_decl = tsubst (parm_decl, args, complain, NULL_TREE);
6239 && invalid_nontype_parm_type_p (TREE_TYPE (parm_decl), complain))
6242 complain, NULL_TREE);
6268 tsubst_flags_t complain,
6279 return tsubst (TYPE_PTRMEMFUNC_FN_TYPE (t), args, complain, in_decl);
6299 context = tsubst_aggr_type (context, args, complain,
6312 complain, in_decl);
6318 entering_scope, complain);
6319 r = cp_build_qualified_type_real (r, TYPE_QUALS (t), complain);
6331 return tsubst (t, args, complain, in_decl);
6423 tsubst_decl (tree t, tree args, tsubst_flags_t complain)
6448 tree new_type = tsubst (TREE_TYPE (t), args, complain, in_decl);
6459 complain);
6477 complain, in_decl);
6510 new_type = tsubst (TREE_TYPE (t), args, complain, in_decl);
6525 new_decl = tsubst (decl, args, complain, in_decl);
6546 complain);
6594 args, complain, in_decl);
6668 complain, t, /*entering_scope=*/1);
6675 type = tsubst (TREE_TYPE (t), args, complain, in_decl);
6698 complain, t);
6717 args, complain, t);
6758 args, complain,
6774 && !grok_op_properties (r, (complain & tf_error) != 0))
6780 args, complain, in_decl));
6802 type = tsubst (TREE_TYPE (t), args, complain, in_decl);
6813 complain, in_decl);
6822 complain, TREE_CHAIN (t));
6831 type = tsubst (TREE_TYPE (t), args, complain, in_decl);
6840 complain, in_decl,
6855 (tsubst_copy (USING_DECL_SCOPE (t), args, complain, in_decl),
6856 tsubst_copy (DECL_NAME (t), args, complain, in_decl));
6880 type = tsubst (TREE_TYPE (t), args, complain, in_decl);
6913 complain,
6929 argvec = tsubst (DECL_TI_ARGS (t), args, complain, in_decl);
6960 type = tsubst (TREE_TYPE (t), args, complain, in_decl);
6992 ve = tsubst_expr (ve, args, complain, in_decl,
7060 tsubst_flags_t complain,
7072 args, complain, in_decl);
7076 type = tsubst (TREE_VALUE (arg_types), args, complain, in_decl);
7081 if (complain & tf_error)
7134 tsubst_flags_t complain,
7145 return_type = tsubst (TREE_TYPE (t), args, complain, in_decl);
7155 if (complain & tf_error)
7167 complain, in_decl);
7186 if (complain & tf_error)
7195 fntype = cp_build_qualified_type_real (fntype, TYPE_QUALS (t), complain);
7208 tsubst_flags_t complain,
7224 spec = tsubst (TREE_VALUE (specs), args, complain, in_decl);
7227 new_specs = add_exception_specifier (new_specs, spec, complain);
7251 tsubst (tree t, tree args, tsubst_flags_t complain, tree in_decl)
7264 return tsubst_decl (t, args, complain);
7278 type = tsubst (type, args, complain, in_decl);
7287 return tsubst_aggr_type (t, args, complain, in_decl,
7313 max = tsubst_expr (omax, args, complain, in_decl,
7321 if (complain & tf_error)
7333 if (integer_zerop (max) && !(complain & tf_error))
7335 indicated by the state of complain), so that
7341 if (complain & tf_error)
7399 (arg, quals, complain | tf_ignore_bad_quals);
7406 args, complain, in_decl);
7422 complain);
7424 (r, TYPE_QUALS (t), complain);
7447 r = tsubst (TYPE_MAIN_VARIANT (t), args, complain, in_decl);
7450 complain | (TREE_CODE (t) == TEMPLATE_TYPE_PARM
7467 complain, in_decl);
7498 purpose = tsubst (purpose, args, complain, in_decl);
7505 value = tsubst (value, args, complain, in_decl);
7512 chain = tsubst (chain, args, complain, in_decl);
7530 return tsubst_template_args (t, args, complain, in_decl);
7559 if (complain & tf_error
7587 r = cp_build_qualified_type_real (r, TYPE_QUALS (t), complain);
7597 r = tsubst (TYPE_OFFSET_BASETYPE (t), args, complain, in_decl);
7607 if (complain & tf_error)
7613 if (complain & tf_error)
7619 if (complain & tf_error)
7637 complain);
7642 complain);
7649 fntype = tsubst_function_type (t, args, complain, in_decl);
7654 specs = tsubst_exception_specification (t, args, complain,
7664 tree domain = tsubst (TYPE_DOMAIN (t), args, complain, in_decl);
7686 if (complain & tf_error)
7692 if (complain & tf_error)
7705 tree e1 = tsubst (TREE_OPERAND (t, 0), args, complain, in_decl);
7706 tree e2 = tsubst (TREE_OPERAND (t, 1), args, complain, in_decl);
7717 tree e = tsubst (TREE_OPERAND (t, 0), args, complain, in_decl);
7726 tree ctx = tsubst_aggr_type (TYPE_CONTEXT (t), args, complain,
7729 complain, in_decl);
7736 if (complain & tf_error)
7753 if (complain & tf_error)
7760 (complain & tf_error) | tf_keep_type_decl);
7765 complain |= tf_ignore_bad_quals;
7780 (f, cp_type_quals (f) | cp_type_quals (t), complain);
7785 tree ctx = tsubst_aggr_type (TYPE_CONTEXT (t), args, complain,
7794 parm_list = tsubst_template_parms (parm_list, args, complain);
7795 return make_unbound_class_template (ctx, name, parm_list, complain);
7805 tree e1 = tsubst (TREE_OPERAND (t, 0), args, complain, in_decl);
7806 tree e2 = tsubst_expr (TREE_OPERAND (t, 1), args, complain, in_decl,
7816 tree e1 = tsubst (TREE_OPERAND (t, 0), args, complain, in_decl);
7817 tree e2 = tsubst (TREE_OPERAND (t, 1), args, complain, in_decl);
7831 complain, in_decl,
7836 complain);
7857 tree args, tsubst_flags_t complain, tree in_decl)
7874 complain, in_decl);
7884 complain, in_decl);
7906 = tsubst (optype, args, complain, in_decl);
7923 tsubst_flags_t complain, tree in_decl,
7942 complain, in_decl);
7958 scope = tsubst (scope, args, complain, in_decl);
7959 expr = tsubst_copy (name, args, complain, in_decl);
7980 if (complain & tf_error)
8000 if (complain & tf_error)
8010 if (expr == error_mark_node && complain & tf_error)
8038 tsubst_copy (tree t, tree args, tsubst_flags_t complain, tree in_decl)
8062 return tsubst_copy (DECL_INITIAL (t), args, complain, in_decl);
8082 = tsubst_aggr_type (TREE_TYPE (t), args, complain, in_decl,
8103 ctx = tsubst_aggr_type (DECL_CONTEXT (t), args, complain, in_decl,
8110 if (complain & tf_error)
8124 t = tsubst (t, args, complain, in_decl);
8129 return tsubst_baselink (t, current_class_type, args, complain, in_decl);
8134 args, complain, in_decl);
8136 return tsubst (t, args, complain, in_decl);
8155 tree context = tsubst (DECL_CONTEXT (t), args, complain, in_decl);
8169 (code, tsubst (TREE_TYPE (t), args, complain, in_decl),
8170 tsubst_copy (TREE_OPERAND (t, 0), args, complain, in_decl));
8186 (code, tsubst (TREE_TYPE (t), args, complain, in_decl),
8187 tsubst_copy (TREE_OPERAND (t, 0), args, complain, in_decl));
8194 object = tsubst_copy (TREE_OPERAND (t, 0), args, complain, in_decl);
8199 complain, in_decl);
8206 complain, in_decl);
8209 complain, in_decl);
8218 args, complain,
8221 name = tsubst_copy (name, args, complain, in_decl);
8262 (code, tsubst_copy (TREE_OPERAND (t, 0), args, complain, in_decl),
8263 tsubst_copy (TREE_OPERAND (t, 1), args, complain, in_decl));
8268 args, complain, in_decl),
8270 args, complain, in_decl),
8276 tsubst_copy (TREE_OPERAND (t, 0), args, complain, in_decl),
8277 tsubst_copy (TREE_OPERAND (t, 1), args, complain, in_decl),
8283 complain, in_decl),
8284 tsubst_copy (TREE_OPERAND (t, 1), args, complain,
8293 (code, tsubst_copy (TREE_OPERAND (t, 0), args, complain, in_decl),
8294 tsubst_copy (TREE_OPERAND (t, 1), args, complain, in_decl),
8295 tsubst_copy (TREE_OPERAND (t, 2), args, complain, in_decl));
8303 (code, tsubst_copy (TREE_OPERAND (t, 0), args, complain, in_decl),
8304 tsubst_copy (TREE_OPERAND (t, 1), args, complain, in_decl),
8305 tsubst_copy (TREE_OPERAND (t, 2), args, complain, in_decl));
8313 (code, tsubst_copy (TREE_OPERAND (t, 0), args, complain, in_decl),
8314 tsubst_copy (TREE_OPERAND (t, 1), args, complain, in_decl));
8326 fn = tsubst_copy (fn, args, complain, in_decl);
8328 targs = tsubst_template_args (targs, args, complain, in_decl);
8342 purpose = tsubst_copy (purpose, args, complain, in_decl);
8345 value = tsubst_copy (value, args, complain, in_decl);
8348 chain = tsubst_copy (chain, args, complain, in_decl);
8374 return tsubst (t, args, complain, in_decl);
8379 tree new_type = tsubst (TREE_TYPE (t), args, complain, in_decl);
8390 return build_x_va_arg (tsubst_copy (TREE_OPERAND (t, 0), args, complain,
8392 tsubst (TREE_TYPE (t), args, complain, in_decl));
8412 tsubst_omp_clauses (tree clauses, tree args, tsubst_flags_t complain,
8436 = tsubst_expr (OMP_CLAUSE_OPERAND (oc, 0), args, complain,
8454 tsubst_copy_asm_operands (tree t, tree args, tsubst_flags_t complain,
8457 #define RECUR(t) tsubst_copy_asm_operands (t, args, complain, in_decl)
8465 return tsubst_copy_and_build (t, args, complain, in_decl,
8489 tsubst_expr (tree t, tree args, tsubst_flags_t complain, tree in_decl,
8493 tsubst_expr ((NODE), args, complain, in_decl, \
8554 /*complain=*/false);
8563 decl = tsubst (decl, args, complain, in_decl);
8711 tsubst_copy_asm_operands (ASM_OUTPUTS (t), args, complain, in_decl),
8712 tsubst_copy_asm_operands (ASM_INPUTS (t), args, complain, in_decl),
8713 tsubst_copy_asm_operands (ASM_CLOBBERS (t), args, complain, in_decl));
8760 decl = tsubst (decl, args, complain, in_decl);
8775 tsubst (TREE_TYPE (t), args, complain, NULL_TREE);
8780 args, complain, in_decl);
8792 args, complain, in_decl);
8821 tmp = tsubst_omp_clauses (OMP_CLAUSES (t), args, complain, in_decl);
8857 return tsubst_copy_and_build (t, args, complain, in_decl,
8871 tsubst_flags_t complain,
8875 t = tsubst_qualified_id (t, args, complain, in_decl,
8878 t = tsubst_copy_and_build (t, args, complain, in_decl,
8891 tsubst_flags_t complain,
8897 tsubst_copy_and_build (NODE, args, complain, in_decl, \
8920 tree new_type = tsubst (TREE_TYPE (t), args, complain, in_decl);
8956 targs = tsubst_template_args (targs, args, complain, in_decl);
8993 (tsubst (TREE_TYPE (t), args, complain, in_decl),
9005 type = tsubst (TREE_TYPE (t), args, complain, in_decl);
9036 args, complain, in_decl);
9053 op1 = tsubst_qualified_id (op1, args, complain, in_decl,
9056 op1 = tsubst_non_call_postfix_expression (op1, args, complain,
9106 return tsubst_qualified_id (t, args, complain, in_decl, /*done=*/true,
9110 args, complain, in_decl);
9135 op1 = tsubst_copy_and_build (op1, args, complain, in_decl,
9164 args, complain, in_decl);
9203 function = tsubst_qualified_id (function, args, complain, in_decl,
9220 function = tsubst_copy_and_build (function, args, complain,
9316 args, complain, in_decl);
9326 args, complain, in_decl);
9328 member = tsubst_copy (member, args, complain, in_decl);
9356 /*complain=*/false);
9376 if (complain & tf_error)
9403 tree type = tsubst (TREE_TYPE (t), args, complain, in_decl);
9447 tree r = tsubst_copy (t, args, complain, in_decl);
9458 tsubst_copy (TREE_TYPE (t), args, complain,
9470 tsubst_expr (STMT_EXPR_STMT (t), args, complain, in_decl,
9479 t = tsubst_copy (t, args, complain, in_decl);
9493 = objcp_tsubst_copy_and_build (t, args, complain,
9498 return tsubst_copy (t, args, complain, in_decl);
9510 check_instantiated_args (tree tmpl, tree args, tsubst_flags_t complain)
9532 if (complain & tf_error)
9546 if (complain & tf_error)
9557 if (complain & tf_error)
9562 if (result && (complain & tf_error))
9571 instantiate_template (tree tmpl, tree targ_ptr, tsubst_flags_t complain)
9590 complain);
9626 complain))
9646 targ_ptr, complain, gen_tmpl);
10185 some template args from previous args, unify would complain when we
11694 We check DECL_NOT_REALLY_EXTERN so as not to complain when
11778 do_type_instantiation (tree t, tree storage, tsubst_flags_t complain)
11798 if (complain & tf_error)
11851 && (complain & tf_error))
12686 invalid_nontype_parm_type_p (tree type, tsubst_flags_t complain)
12699 if (complain & tf_error)