This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/49669] [4.6/4.7 Regression] [C++0x] Compiler crashes with "internal compiler error: in perform_member_init, at cp/init.c:530"
- From: "z0sh at sogetthis dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 7 Jul 2011 11:49:48 +0000
- Subject: [Bug c++/49669] [4.6/4.7 Regression] [C++0x] Compiler crashes with "internal compiler error: in perform_member_init, at cp/init.c:530"
- Auto-submitted: auto-generated
- References: <bug-49669-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49669
--- Comment #2 from Kerrek SB <z0sh at sogetthis dot com> 2011-07-07 11:49:46 UTC ---
Yes, I know that the code is invalid, but that shouldn't make the compiler
crash, should it?
For that matter, your proposed correct syntax is also rejected by 4.6.0:
Goo::Goo() : x{Foo(4), Foo(5)} { }
"error: invalid initializer for array member âFoo Goo::x [2]"