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++/54922] [C++11][DR 1359] constexpr constructors require initialization of all union members


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

--- Comment #5 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> 2012-10-23 23:43:25 UTC ---
Author: paolo
Date: Tue Oct 23 23:43:21 2012
New Revision: 192749

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=192749
Log:
/cp
2012-10-23  Paolo Carlini  <paolo.carlini@oracle.com>

    PR c++/54922
    * semantics.c (cx_check_missing_mem_inits): Handle anonymous union
    members.

/testsuite
2012-10-23  Paolo Carlini  <paolo.carlini@oracle.com>

    PR c++/54922
    * g++.dg/cpp0x/constexpr-union4.C: New.

Added:
    trunk/gcc/testsuite/g++.dg/cpp0x/constexpr-union4.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/semantics.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]