[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"
redi at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Jul 7 12:13:00 GMT 2011
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49669
--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> 2011-07-07 12:12:26 UTC ---
(In reply to comment #2)
> Yes, I know that the code is invalid, but that shouldn't make the compiler
> crash, should it?
No, that's why I confirmed the bug and marked it as a regression.
> 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]"
Yes, but it works with 4.6.1
More information about the Gcc-bugs
mailing list