This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/49132] [DR 178] Aggregate-initialization rejected for class with const data member


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]