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++/55226] [4.8 Regression] ICE regression in regard to anonymous unions and constexpr


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;
}


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