This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/51675] [C++11][New in 4.7] Cannot create constexpr unions
- From: "classixretrox at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 24 Dec 2011 18:24:45 +0000
- Subject: [Bug c++/51675] [C++11][New in 4.7] 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 #1 from RÃtroX <classixretrox at gmail dot com> 2011-12-24 18:24:45 UTC ---
More information: initializing in the constructor doesn't work, either.
union foo
{
int x;
short y;
constexpr foo() : x(0) { }
};
Also does not compile.