public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "jason at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/33916] [4.2/4.3 Regression] Default constructor fails to initialize array members
Date: Mon, 04 Feb 2008 03:30:00 -0000	[thread overview]
Message-ID: <20080204032942.24237.qmail@sourceware.org> (raw)
In-Reply-To: <bug-33916-11211@http.gcc.gnu.org/bugzilla/>



------- Comment #9 from jason at gcc dot gnu dot org  2008-02-04 03:29 -------
Subject: Bug 33916

Author: jason
Date: Mon Feb  4 03:28:53 2008
New Revision: 132088

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=132088
Log:
        PR c++/33916
        * cp/init.c (build_value_init_1): New function.
        (build_value_init): New function.
        * cp/typeck2.c (build_functional_cast): Call it.
        * cp/cp-gimplify.c (cp_gimplify_init_expr): Handle its output.

        * cp/cp-tree.h (TYPE_HAS_USER_CONSTRUCTOR): Rename from
        TYPE_HAS_CONSTRUCTOR.
        * cp/class.c (finish_struct_bits,
maybe_warn_about_overly_private_class,
        add_implicitly_declared_members): Adjust.
        (check_field_decls): Adjust. Remove warnings about reference/const
        in class without constructor.
        (check_bases_and_members): Adjust.  Give those warnings here instead.
        * cp/decl.c (fixup_anonymous_aggr): Adjust.
        (check_initializer): Adjust, clarify logic slightly.
        (grok_special_member_properties): Adjust, only set if user-provided.
        * cp/rtti.c (create_tinfo_types): Don't set.
        * cp/cvt.c (ocp_convert): Remove exception for vtable_entry_type et al.
        Use same_type_ignoring_top_level_qualifiers_p.
        * cp/pt.c (check_explicit_specialization): Adjust.
        (instantiate_class_template): Adjust.

        * print-tree.c (print_node) [CONSTRUCTOR]: Print elements.

Added:
    trunk/gcc/testsuite/g++.dg/init/value1.C
    trunk/gcc/testsuite/g++.dg/warn/Wextra-1.C
    trunk/gcc/testsuite/g++.dg/warn/Wextra-2.C
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/class.c
    trunk/gcc/cp/cp-gimplify.c
    trunk/gcc/cp/cp-tree.h
    trunk/gcc/cp/cvt.c
    trunk/gcc/cp/decl.c
    trunk/gcc/cp/init.c
    trunk/gcc/cp/pt.c
    trunk/gcc/cp/rtti.c
    trunk/gcc/cp/typeck2.c
    trunk/gcc/print-tree.c
    trunk/gcc/testsuite/g++.dg/init/ctor8.C


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33916


  parent reply	other threads:[~2008-02-04  3:30 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-26 21:06 [Bug c++/33916] New: " mec at google dot com
2007-10-31 20:08 ` [Bug c++/33916] " crowl at google dot com
2007-11-01  2:17 ` gdr at gcc dot gnu dot org
2007-12-11  0:04 ` [Bug c++/33916] [4.2/4.3 Regression] " janis at gcc dot gnu dot org
2007-12-11  0:17 ` pinskia at gcc dot gnu dot org
2007-12-12 20:55 ` mmitchel at gcc dot gnu dot org
2008-01-02 23:49 ` mmitchel at gcc dot gnu dot org
2008-01-07 19:21 ` mmitchel at gcc dot gnu dot org
2008-01-07 19:47 ` crowl at google dot com
2008-01-22 21:23 ` steven at gcc dot gnu dot org
2008-01-25 16:54 ` rguenth at gcc dot gnu dot org
2008-02-01 17:01 ` jsm28 at gcc dot gnu dot org
2008-02-04  3:30 ` jason at gcc dot gnu dot org [this message]
2008-02-04 12:15 ` [Bug c++/33916] [4.2 " rguenth at gcc dot gnu dot org
2008-02-12  6:39 ` jason at gcc dot gnu dot org
2008-02-12  6:42 ` jason at gcc dot gnu dot org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20080204032942.24237.qmail@sourceware.org \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).