public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "paolo at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/49132] [DR 178] Aggregate-initialization rejected for class with const data member
Date: Wed, 25 Jun 2014 14:28:00 -0000	[thread overview]
Message-ID: <bug-49132-4-OtV21LNUiQ@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-49132-4@http.gcc.gnu.org/bugzilla/>

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=49132

--- Comment #8 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> ---
Author: paolo
Date: Wed Jun 25 14:27:35 2014
New Revision: 211981

URL: https://gcc.gnu.org/viewcvs?rev=211981&root=gcc&view=rev
Log:
/cp
2014-06-25  Paolo Carlini  <paolo.carlini@oracle.com>

    DR 178
    PR c++/49132
    * typeck2.c (process_init_constructor_record): Do not complain about
    uninitialized const members, because within aggregate-initialization,
    members without explicit initializers are value-initialized.

/testsuite
2014-06-25  Paolo Carlini  <paolo.carlini@oracle.com>

    DR 178
    PR c++/49132
    * g++.dg/cpp0x/aggr1.C: New.
    * g++.dg/cpp0x/aggr2.C: Likewise.
    * g++.dg/init/aggr11.C: Likewise.
    * g++.dg/init/aggr12.C: Likewise.

Added:
    trunk/gcc/testsuite/g++.dg/cpp0x/aggr1.C
    trunk/gcc/testsuite/g++.dg/cpp0x/aggr2.C
    trunk/gcc/testsuite/g++.dg/init/aggr11.C
    trunk/gcc/testsuite/g++.dg/init/aggr12.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/typeck2.c
    trunk/gcc/testsuite/ChangeLog


  parent reply	other threads:[~2014-06-25 14:28 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-23 21:46 [Bug c++/49132] New: [C++0x] " daniel.kruegler at googlemail dot com
2011-05-23 22:37 ` [Bug c++/49132] [DR 178] " jason at gcc dot gnu.org
2011-05-23 22:37 ` [Bug c++/49132] [C++0x] " jason at gcc dot gnu.org
2011-05-23 22:40 ` [Bug c++/49132] [4.6/4.7 regression] " jason at gcc dot gnu.org
2011-05-23 22:43 ` [Bug c++/49132] [C++0x] " jason at gcc dot gnu.org
2011-05-23 22:48 ` [Bug c++/49132] " jason at gcc dot gnu.org
2011-05-24  0:42 ` [Bug c++/49132] [DR 178] " redi at gcc dot gnu.org
2011-11-16 13:55 ` fabien at gcc dot gnu.org
2014-06-24 18:41 ` paolo.carlini at oracle dot com
2014-06-25 14:28 ` paolo at gcc dot gnu.org [this message]
2014-06-25 14:29 ` paolo.carlini at oracle dot com
2014-06-26 17:00 ` paolo.carlini at oracle dot com

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=bug-49132-4-OtV21LNUiQ@http.gcc.gnu.org/bugzilla/ \
    --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).