Lines Matching refs:init

606      in a for-init statement were in scope after the for-statement
2504 /* Can't skip init of __exception_info. */
3331 filled in with the type of the init. */
3338 tree init = NULL_TREE;
3345 init = build_string (length + 1, name);
3353 if (init)
3354 TREE_TYPE (init) = type;
3356 init = error_mark_node;
3358 return init;
3373 tree init = cp_fname_init (name, &type);
3395 cp_finish_decl (decl, init, /*init_const_expr_p=*/false, NULL_TREE,
3399 pushdecl_top_level_and_finish (decl, init);
3706 /* 7/3 In a simple-declaration, the optional init-declarator-list
4156 grok_reference_init (tree decl, tree type, tree init, tree *cleanup)
4160 if (init == NULL_TREE)
4169 if (TREE_CODE (init) == CONSTRUCTOR)
4176 if (TREE_CODE (init) == TREE_LIST)
4177 init = build_x_compound_expr_from_list (init, "initializer");
4180 && TREE_CODE (TREE_TYPE (init)) == ARRAY_TYPE)
4182 init = decay_conversion (init);
4191 tmp = initialize_reference (type, init, decl, cleanup);
4197 error ("cannot initialize %qT from %qT", type, TREE_TYPE (init));
4238 maybe_deduce_size_from_array_init (tree decl, tree init)
4249 tree initializer = init ? init : DECL_INITIAL (decl);
4585 /* [dcl.init.aggr]
4624 /* [dcl.init.aggr]
4647 tree init = d->cur->value;
4658 if (TREE_CODE (init) == CONSTRUCTOR
4659 && BRACE_ENCLOSED_INITIALIZER_P (init)) /* p7626.C */
4662 init = error_mark_node;
4666 return init;
4669 /* [dcl.init.aggr]
4678 if (TREE_CODE (init) != CONSTRUCTOR
4679 && can_convert_arg (type, TREE_TYPE (init), init, LOOKUP_NORMAL))
4682 return init;
4685 /* [dcl.init.string]
4694 tree str_init = init;
4697 element (as allowed by [dcl.init.string]). */
4722 if (TREE_CODE (init) == CONSTRUCTOR)
4724 if (TREE_TYPE (init) && TYPE_PTRMEMFUNC_P (TREE_TYPE (init)))
4729 else if (COMPOUND_LITERAL_P (init))
4735 gcc_assert (!BRACE_ENCLOSED_INITIALIZER_P (init));
4739 gcc_assert (BRACE_ENCLOSED_INITIALIZER_P (init));
4740 return reshape_init (type, init);
4759 /* Undo the brace-elision allowed by [dcl.init.aggr] in a
4775 reshape_init (tree type, tree init)
4781 gcc_assert (BRACE_ENCLOSED_INITIALIZER_P (init));
4783 v = CONSTRUCTOR_ELTS (init);
4788 return init;
4814 check_initializer (tree decl, tree init, int flags, tree *cleanup)
4840 if (init
4859 && init && BRACE_ENCLOSED_INITIALIZER_P (init)
4860 && VEC_length (constructor_elt, CONSTRUCTOR_ELTS (init)) != 1)
4871 DECL_INITIAL (decl) = init;
4873 gcc_assert (init != NULL_TREE);
4874 init = NULL_TREE;
4877 init = grok_reference_init (decl, type, init, cleanup);
4878 else if (init)
4882 if (TREE_CODE (init) == CONSTRUCTOR
4883 && !COMPOUND_LITERAL_P (init)
4884 && !TREE_TYPE (init)) /* ptrmemfunc */
4886 init = reshape_init (type, init);
4891 init = error_mark_node;
4897 maybe_deduce_size_from_array_init (decl, init);
4906 else if (TREE_CODE (init) == CONSTRUCTOR)
4913 init = error_mark_node;
4929 init = build_aggr_init (decl, init, flags);
4933 return init;
4939 if (TREE_CODE (init) != TREE_VEC)
4941 init_code = store_init_value (decl, init);
4948 init = NULL;
4970 if (init && init != error_mark_node)
4971 init_code = build2 (INIT_EXPR, type, decl, init);
4979 make_rtl_for_nonlocal_decl (tree decl, tree init, const char* asmspec)
5019 if (init == NULL_TREE)
5067 initialize_local_var (tree decl, tree init)
5091 if (init)
5098 finish_expr_stmt (init);
5131 initialize_artificial_var (tree decl, tree init)
5134 if (TREE_CODE (init) == TREE_LIST)
5135 init = build_constructor_from_list (NULL_TREE, init);
5136 gcc_assert (TREE_CODE (init) == CONSTRUCTOR);
5137 DECL_INITIAL (decl) = init;
5142 make_rtl_for_nonlocal_decl (decl, init, /*asmspec=*/NULL);
5149 value_dependent_init_p (tree init)
5151 if (TREE_CODE (init) == TREE_LIST)
5153 return any_value_dependent_elements_p (init);
5154 else if (TREE_CODE (init) == CONSTRUCTOR)
5161 elts = CONSTRUCTOR_ELTS (init);
5170 return value_dependent_expression_p (init);
5183 FLAGS is LOOKUP_ONLYCONVERTING if the = init syntax was used, else 0
5184 if the (init) syntax was used. */
5187 cp_finish_decl (tree decl, tree init, bool init_const_expr_p,
5201 if (init)
5227 && (DECL_INITIAL (decl) || init))
5240 if (init && init_const_expr_p)
5252 if (!(init
5256 && !value_dependent_init_p (init)))
5258 if (init)
5259 DECL_INITIAL (decl) = init;
5263 maybe_deduce_size_from_array_init (decl, init);
5267 init = fold_non_dependent_expr (init);
5328 && (!DECL_EXTERNAL (decl) || init))
5330 if (init)
5340 init = check_initializer (decl, init, flags, &cleanup);
5342 if (DECL_THREAD_LOCAL_P (decl) && init)
5346 init = NULL_TREE;
5360 if (DECL_EXTERNAL (decl) && init)
5365 init = NULL_TREE;
5370 [dcl.init]
5419 make_rtl_for_nonlocal_decl (decl, init, asmspec);
5441 if (init)
5442 DECL_INITIAL (decl) = init;
5451 DECL_INITIAL (decl) = init;
5453 initialize_local_var (decl, init);
5469 if (init)
5475 expand_static_init (decl, init);
5499 finish_decl (tree decl, tree init, tree asmspec_tree)
5501 cp_finish_decl (decl, init, /*init_const_expr_p=*/false, asmspec_tree, 0);
5764 expand_static_init (tree decl, tree init)
5770 if (!init
5868 init = add_stmt_to_compound (begin, init);
5869 init = add_stmt_to_compound
5870 (init, build2 (MODIFY_EXPR, void_type_node, flag, boolean_true_node));
5871 init = add_stmt_to_compound
5872 (init, build_call (release_fn, guard_addr_list));
5875 init = add_stmt_to_compound (init, set_guard (guard));
5879 init = add_stmt_to_compound (init, register_dtor_fn (decl));
5881 finish_expr_stmt (init);
5898 static_aggregates = tree_cons (init, decl, static_aggregates);
9004 tree init = parm->default_argument;
9014 PARM, init != NULL_TREE, &attrs);
9074 init = NULL_TREE;
9075 else if (init && !processing_template_decl)
9076 init = check_default_argument (decl, init);
9081 result = tree_cons (init, type, result);