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 16:09:59 +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 #4 from Kerrek SB <z0sh at sogetthis dot com> 2011-07-07 16:09:55 UTC ---
You're right, it works in 4.6.1 - thanks! (Just updated.)
Say, since you're here, if I change the definition of x from "Foo[2]" to
"std::array<Foo,2>", should I be allowed to initialize it with
Goo::Goo() : x{{Foo(4), Foo(5)}} { }
At the moment, _only_ the following seems to work:
Goo::Goo() : x({{Foo(4), Foo(5)}}) { }
In particular, initialization of "Foo[2]" and "std::array<Foo,2>" is anything
but "uniform" :-)