This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/17407] New: ICE in int_mode_for_mode
- From: "steven at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 10 Sep 2004 20:43:06 -0000
- Subject: [Bug middle-end/17407] New: ICE in int_mode_for_mode
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
$ gcc --version
gcc (GCC) 3.5.0 20040909 (experimental)
Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
$ cat t.i
typedef struct libxml_xpathCallback {
void *ns_uri;
} libxml_xpathCallback;
typedef libxml_xpathCallback libxml_xpathCallbackArray[];
libxml_xpathCallbackArray *libxml_xpathCallbacks;
void
foo (void)
{
if ((*libxml_xpathCallbacks)[3].ns_uri != ((void *)0)) ;
}
$ gcc t.i
t.i: In function `foo':
t.i:12: internal compiler error: in int_mode_for_mode, at stor-layout.c:253
Happens on at least ia64 and amd64
--
Summary: ICE in int_mode_for_mode
Product: gcc
Version: 4.0.0
Status: UNCONFIRMED
Keywords: ice-on-valid-code
Severity: normal
Priority: P2
Component: middle-end
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: steven at gcc dot gnu dot org
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17407