This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/47356] New: Internal error when assigning with incomplete uniform initializer list
- From: "thunderliu at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 19 Jan 2011 08:32:54 +0000
- Subject: [Bug c++/47356] New: Internal error when assigning with incomplete uniform initializer list
- Auto-submitted: auto-generated
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: unassigned@gcc.gnu.org
ReportedBy: thunderliu@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