diff options
author | Mark Mitchell <mark@codesourcery.com> | 2002-10-11 16:50:44 +0000 |
---|---|---|
committer | Mark Mitchell <mmitchel@gcc.gnu.org> | 2002-10-11 16:50:44 +0000 |
commit | 8e3df2def72d65c27249128842fe14ef00695b6b (patch) | |
tree | 9c2e122fd8114e13c9a7e7b1f586fcf1e369c77d /gcc/cp/NEWS | |
parent | 98ddd678f0a8bee7c9a0673089f14c4d0448f6cd (diff) | |
download | gcc-8e3df2def72d65c27249128842fe14ef00695b6b.zip gcc-8e3df2def72d65c27249128842fe14ef00695b6b.tar.gz gcc-8e3df2def72d65c27249128842fe14ef00695b6b.tar.bz2 |
NEWS: Document removal of "new X = ..." extension.
* NEWS: Document removal of "new X = ..." extension.
* class.c (initialize_array): Set TREE_HAS_CONSTRUCTOR on
brace-enclosed initializers.
* cp-tree.h (CP_AGGREGATE_TYPE_P): New macro.
(initialize_local_var): Remove declaration.
(expand_static_init): Likewise.
* decl.c (next_initializable_field): New function.
(reshape_init): Likewise.
(check_initializer): Use them. Build dynamic initializer for
aggregates here too.
(initialize_local_var): Simplify, and incorporate cleanup
insertion code as well.
(destroy_local_var): Remove.
(cp_finish_decl): Tidy.
(expand_static_init): Fold checks for whether or not a variable
needs initialization into this function. Simplify.
* decl2.c (do_static_initialization): Simplify.
* init.c (build_init): Do not set TREE_SIDE_EFFECTS when it will
be done for us automatically.
(expand_default_init): Handle brace-enclosed initializers
correctly.
(expand_aggr_init_1): Remove RTL-generation code.
(build_vec_init): Remove "new X = ..." support.
* parse.y (new_initializer): Likewise.
* rtti.c (get_pseudo_ti_init): Set TREE_HAS_CONSTRUCTOR on
brace-enclosed initializer.
(create_pseudo_type_info): Likewise.
* typeck2.c (store_init_value): Don't try to handle digest_init
being called more than once.
(digest_init): Tidy handling of brace-enclosed initializers.
* g++.dg/init/array1.C: Remove invalid braces.
* g++.dg/init/brace1.C: New test.
* g++.dg/init/copy2.C: Likewise.
* g++.dg/init/copy3.C: Likewise.
* g++.old-deja/g++.ext/arrnew.C: Change WARNING to ERROR.
* g++.old-deja/g++.mike/p9129.C: Add ERROR on invalid use of
braces.
From-SVN: r58053
Diffstat (limited to 'gcc/cp/NEWS')
-rw-r--r-- | gcc/cp/NEWS | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/cp/NEWS b/gcc/cp/NEWS index caee3fb..85642b5 100644 --- a/gcc/cp/NEWS +++ b/gcc/cp/NEWS @@ -1,3 +1,7 @@ +*** Changes in GCC 3.3: + +* The "new X = 3" extension has been removed; you must now use "new X(3)". + *** Changes in GCC 3.1: * -fhonor-std and -fno-honor-std have been removed. -fno-honor-std was |