summaryrefslogtreecommitdiff
path: root/gcc/cp/init.c
diff options
context:
space:
mode:
authordgregor <dgregor@138bc75d-0d04-0410-961f-82ee72b054a4>2007-08-31 19:18:20 +0000
committerdgregor <dgregor@138bc75d-0d04-0410-961f-82ee72b054a4>2007-08-31 19:18:20 +0000
commit2d7f50b974d8f7228a53ce8c52eb2aae2ff79baf (patch)
tree2f99d34ff51b2a0d4c2f5bf980a91ec2f1f8397d /gcc/cp/init.c
parentc4692e0443adc1dad6b7ff91f324b3e2af4f6b12 (diff)
downloadgcc-2d7f50b974d8f7228a53ce8c52eb2aae2ff79baf.tar.gz
2007-08-31 Douglas Gregor <doug.gregor@gmail.com>
PR c++/32597 * init.c (build_default_init): Make extern. * cp-tree.h (build_default_init): Declare here. * pt.c (tsubst_expr): When the instantiation of the initializer of a variable results in an empty list, default-initialize the variable. (tsubst_copy_and_build): When the instantiation of the initializer in a new expression results in an empty initializer list, default-initialize it. 2007-08-31 Douglas Gregor <doug.gregor@gmail.com> PR c++/32597 * gcc/testsuite/g++.dg/cpp0x/variadic-new2.C: New. * gcc/testsuite/g++.dg/cpp0x/variadic-new.C: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@128000 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cp/init.c')
-rw-r--r--gcc/cp/init.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/cp/init.c b/gcc/cp/init.c
index ce33e42a4cb..b46d687a903 100644
--- a/gcc/cp/init.c
+++ b/gcc/cp/init.c
@@ -51,7 +51,6 @@ static tree initializing_context (tree);
static void expand_cleanup_for_base (tree, tree);
static tree get_temp_regvar (tree, tree);
static tree dfs_initialize_vtbl_ptrs (tree, void *);
-static tree build_default_init (tree, tree);
static tree build_dtor_call (tree, special_function_kind, int);
static tree build_field_list (tree, tree, int *);
static tree build_vtbl_address (tree);
@@ -275,7 +274,7 @@ build_zero_init (tree type, tree nelts, bool static_storage_p)
returns NULL_TREE; the caller is responsible for arranging for the
constructors to be called. */
-static tree
+tree
build_default_init (tree type, tree nelts)
{
/* [dcl.init]: