diff options
author | Mark Mitchell <mark@codesourcery.com> | 2005-03-09 07:28:10 +0000 |
---|---|---|
committer | Mark Mitchell <mmitchel@gcc.gnu.org> | 2005-03-09 07:28:10 +0000 |
commit | b5af313312d166f0d94ae408f28db90486236496 (patch) | |
tree | eae4d082b5125cdbc718dbc2af1ebb736c775972 /gcc/cp/decl.c | |
parent | e140d617c5f1d880dec74f5036d3a5c1b374311d (diff) | |
download | gcc-b5af313312d166f0d94ae408f28db90486236496.zip gcc-b5af313312d166f0d94ae408f28db90486236496.tar.gz gcc-b5af313312d166f0d94ae408f28db90486236496.tar.bz2 |
re PR c++/20142 (implicit assignment operator with multi-dimensional array is broken)
PR c++/20142
* cp-tree.h (target_type): Remove.
* decl.c (layout_var_decl): Remove #if 0'd code.
(cp_finish_decl): Remove dead code.
* init.c (build_vec_init): When determining whether or not the
element type has an asignment operator, look through all array
dimensions.
* typeck.c (target_type): Remove.
PR c++/20142
* g++.dg/init/array18.C: New test.
From-SVN: r96170
Diffstat (limited to 'gcc/cp/decl.c')
-rw-r--r-- | gcc/cp/decl.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c index dfc1790..fbb264e 100644 --- a/gcc/cp/decl.c +++ b/gcc/cp/decl.c @@ -3940,9 +3940,6 @@ static void layout_var_decl (tree decl) { tree type = TREE_TYPE (decl); -#if 0 - tree ttype = target_type (type); -#endif /* If we haven't already layed out this declaration, do so now. Note that we must not call complete type for an external object @@ -4710,7 +4707,6 @@ void cp_finish_decl (tree decl, tree init, tree asmspec_tree, int flags) { tree type; - tree ttype = NULL_TREE; tree cleanup; const char *asmspec = NULL; int was_readonly = 0; @@ -4795,10 +4791,6 @@ cp_finish_decl (tree decl, tree init, tree asmspec_tree, int flags) goto finish_end; } - if (TREE_CODE (decl) != FUNCTION_DECL) - ttype = target_type (type); - - /* A reference will be modified here, as it is initialized. */ if (! DECL_EXTERNAL (decl) && TREE_READONLY (decl) |