]> gcc.gnu.org Git - gcc.git/commit - gcc/cp/init.c
init.c (build_default_init): New fn.
authorJason Merrill <jason@redhat.com>
Wed, 3 Jan 2001 03:28:51 +0000 (22:28 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Wed, 3 Jan 2001 03:28:51 +0000 (22:28 -0500)
commitf30efcb78a1e867cd78017f872dd0c2a1064adfb
tree283386e3c949a3a24ebf975086eb02c0d52e8c32
parenta412bf75d904604bc4cb05e888663ad70e4008cf
init.c (build_default_init): New fn.

        * init.c (build_default_init): New fn.
        (perform_member_init): Split out from here.
        (build_new_1): Use it.  Simplify initialization logic.
        (build_vec_init): Take an array, rather than a pointer and maxindex.
        Speed up simple initializations.  Don't clean up if we're assigning.
        * cp-tree.h: Adjust.
        * decl2.c (do_static_initialization): Remove TREE_VEC case.
        * parse.y (new_initializer): Return void_zero_node for ().
        * typeck.c (build_modify_expr): Handle getting a CONSTRUCTOR.
        * typeck2.c (digest_init): Only complain about user-written
        CONSTRUCTORs.

From-SVN: r38643
gcc/cp/ChangeLog
gcc/cp/cp-tree.h
gcc/cp/decl2.c
gcc/cp/init.c
gcc/cp/parse.y
gcc/cp/typeck.c
gcc/cp/typeck2.c
gcc/testsuite/g++.old-deja/g++.other/new6.C
This page took 0.059559 seconds and 5 git commands to generate.