aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/class.c
diff options
context:
space:
mode:
authorMark Mitchell <mark@codesourcery.com>2004-04-22 21:29:35 +0000
committerMark Mitchell <mmitchel@gcc.gnu.org>2004-04-22 21:29:35 +0000
commit92a62aad855ff49dbd3c975aed87ed141ff447b4 (patch)
tree0ba13a72c0e5f3f23ed463ff62b80ef65ac60f72 /gcc/cp/class.c
parent838a4849fab52af1c5d54703b4591d403544dd7f (diff)
downloadgcc-92a62aad855ff49dbd3c975aed87ed141ff447b4.zip
gcc-92a62aad855ff49dbd3c975aed87ed141ff447b4.tar.gz
gcc-92a62aad855ff49dbd3c975aed87ed141ff447b4.tar.bz2
class.c (initialize_array): Don't set TREE_HAS_CONSTRUCTOR on braced initializer.
* class.c (initialize_array): Don't set TREE_HAS_CONSTRUCTOR on braced initializer. * cp-tree.h (BRACE_ENCLOSED_INITIALIZER_P): New macro. * decl.c (reshape_init): Use it. * init.c (perform_member_init): Remove redundant condition. (build_aggr_init): Adjust to handle brace-enclosed initializers correctly. (expand_default_init): Use BRACE_ENCLOSED_INITIALIZER_P. * parser.c (cp_parser_initializer_clause): Do not set TREE_HAS_CONSTRUCTOR on the initializer. * rtti.c (tinfo_base_init): Likewise. (generic_initializer): Likewise. (ptr_initializer): Likewise. (ptm_initializer): Likewise. (class_initializer): Likewise. (get_pseudo_ti_init): Likewise. * typeck2.c (digest_init): Use BRACE_ENCLOSED_INITIALIZER_P. * g++.dg/ext/complit3.C: New test. From-SVN: r81052
Diffstat (limited to 'gcc/cp/class.c')
-rw-r--r--gcc/cp/class.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/gcc/cp/class.c b/gcc/cp/class.c
index c78482c..9a9272b 100644
--- a/gcc/cp/class.c
+++ b/gcc/cp/class.c
@@ -6729,7 +6729,6 @@ initialize_array (tree decl, tree inits)
context = DECL_CONTEXT (decl);
DECL_CONTEXT (decl) = NULL_TREE;
DECL_INITIAL (decl) = build_constructor (NULL_TREE, inits);
- TREE_HAS_CONSTRUCTOR (DECL_INITIAL (decl)) = 1;
cp_finish_decl (decl, DECL_INITIAL (decl), NULL_TREE, 0);
DECL_CONTEXT (decl) = context;
}