This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/51675] [C++11][4.7 Regression] Cannot create constexpr unions
- From: "jason at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 02 Jan 2012 17:53:32 +0000
- Subject: [Bug c++/51675] [C++11][4.7 Regression] Cannot create constexpr unions
- Auto-submitted: auto-generated
- References: <bug-51675-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51675
--- Comment #2 from Jason Merrill <jason at gcc dot gnu.org> 2012-01-02 17:53:32 UTC ---
Author: jason
Date: Mon Jan 2 17:53:28 2012
New Revision: 182810
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=182810
Log:
DR 1359
PR c++/51675
* method.c (walk_field_subobs): Don't check for uninitialized
fields in a union.
(synthesized_method_walk): Check here.
Added:
trunk/gcc/testsuite/g++.dg/cpp0x/constexpr-union2.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/method.c
trunk/gcc/testsuite/ChangeLog