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

             Bug #: 51219
           Summary: ICE with structure initializer
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassig...@gcc.gnu.org
        ReportedBy: reich...@gcc.gnu.org


The following valid code snippet triggers an ICE on trunk:

=======================
struct A
{
  int i;
  int : 8;
};

void foo()
{
  A a = { .i = 0 };
}
=======================

bug.cc: In function 'void foo()':
bug.cc:7:6: error: non-trivial conversion at assignment
signed char
int
a.D.1836 = 0;

bug.cc:7:6: internal compiler error: verify_gimple failed
Please submit a full bug report, [etc.]

Reply via email to