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

           Summary: Internal error when assigning with incomplete uniform
                    initializer list
           Product: gcc
           Version: 4.4.5
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassig...@gcc.gnu.org
        ReportedBy: thunder...@gmail.com


Created attachment 23027
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=23027
preprocessed source

gcc reports internal error when assigning an aggregate with a brace-enclosed
initializer list (should report normal compile error instead).

struct C {
    C();
};

struct A {
    bool i;
    C p[1];
};

void foo()
{
    A a1;
    a1 = { false };
}

$ g++ -std=c++0x -c gcc_bug.C
gcc_bug.C: In function 'void foo()':
gcc_bug.C:13: internal compiler error: in build_value_init_noctor, at
cp/init.c:406

Reply via email to