This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/25417] New: internal compiler error in check_initializer; hits clisp
- From: "matz at suse dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 14 Dec 2005 18:17:14 -0000
- Subject: [Bug c++/25417] New: internal compiler error in check_initializer; hits clisp
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
This small testcase is extracted from clisp, and throws an ICE:
-------------------------------
struct object {
int a;
int b;
};
void f (int c, int d)
{
object o = ((object){ a : c, b : d});
}
--------------------------------
% g++ -c bla.ii
bla.ii: In function ‘void f(int, int)’:
bla.ii:8: internal compiler error: in check_initializer, at cp/decl.c:4613
Removing the explicit cast and the surrounding parentheses, i.e. to read like
so:
object o = { a : c, b : d};
makes this compile.
--
Summary: internal compiler error in check_initializer; hits clisp
Product: gcc
Version: 4.1.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: matz at suse dot de
GCC host triplet: ia64-linux
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25417