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: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 7 Jul 2011 11:27:36 +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
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |ice-on-invalid-code
Status|UNCONFIRMED |NEW
Last reconfirmed| |2011.07.07 11:27:31
Known to work| |4.5.2
Summary|Compiler crashes with |[4.6/4.7 Regression]
|"internal compiler error: |[C++0x] Compiler crashes
|in perform_member_init, at |with "internal compiler
|cp/init.c:530" |error: in
| |perform_member_init, at
| |cp/init.c:530"
Ever Confirmed|0 |1
Known to fail| |4.6.1, 4.7.0
--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> 2011-07-07 11:27:31 UTC ---
The code is invalid, to initialize the array you need:
x{Foo(4), Foo(5)}
4.5 correctly rejects it:
b.cc: In constructor 'Goo::Goo()':
b.cc:2:38: error: bad array initializer