This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/55226] [4.8 Regression] ICE regression in regard to anonymous unions and constexpr
- From: "paolo.carlini at oracle dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 07 Nov 2012 10:52:16 +0000
- Subject: [Bug c++/55226] [4.8 Regression] ICE regression in regard to anonymous unions and constexpr
- Auto-submitted: auto-generated
- References: <bug-55226-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55226
Paolo Carlini <paolo.carlini at oracle dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2012-11-07
Blocks| |54922
Summary|[C++11] ICE regression in |[4.8 Regression] ICE
|regard to anonymous unions |regression in regard to
|and constexpr |anonymous unions and
| |constexpr
Ever Confirmed|0 |1
--- Comment #1 from Paolo Carlini <paolo.carlini at oracle dot com> 2012-11-07 10:52:16 UTC ---
I'm going to revert for now the fix for 54922. This one is essentially just a
duplicate of that one, simply trying to use the user defined type:
class nullable_int
{
bool init_;
union {
unsigned char for_value_init;
int value_;
};
public:
constexpr nullable_int() : init_(false), for_value_init() {}
};
int main()
{
nullable_int n;
}