This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/11063] New: ICE on parsing initialization list of const array member
- From: "ElGringo at gmx dot at" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 2 Jun 2003 12:15:03 -0000
- Subject: [Bug c++/11063] New: ICE on parsing initialization list of const array member
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11063
Summary: ICE on parsing initialization list of const array member
Product: gcc
Version: 3.2.2
Status: UNCONFIRMED
Severity: minor
Priority: P3
Component: c++
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: ElGringo@gmx.at
CC: gcc-bugs@gcc.gnu.org
Member: const int val[2];
Constructor: Foo::Foo (...) : val((int[]) {...})
results in:
init.cpp: In constructor `Foo::Foo(int, int)':
init.cpp:12: Internal compiler error in build_modify_expr, at cp/typeck.c:5516
works fine with Constructor: Foo::Foo (...) : foo((const int[]) {...})
(i don't understand why i need the casting, but syntax error without...)
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.