]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/cp/init.cc
re PR c++/20142 (implicit assignment operator with multi-dimensional array is broken)
authorMark Mitchell <mark@codesourcery.com>
Wed, 9 Mar 2005 07:28:10 +0000 (07:28 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Wed, 9 Mar 2005 07:28:10 +0000 (07:28 +0000)
commitb5af313312d166f0d94ae408f28db90486236496
treeeae4d082b5125cdbc718dbc2af1ebb736c775972
parente140d617c5f1d880dec74f5036d3a5c1b374311d
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
gcc/cp/ChangeLog
gcc/cp/cp-tree.h
gcc/cp/decl.c
gcc/cp/init.c
gcc/cp/name-lookup.c
gcc/cp/typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/init/array18.C [new file with mode: 0644]