This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/34701] New: ICE in tree-ssa-ccp.c with -fipa-struct-reorg
- From: "alond at il dot ibm dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 7 Jan 2008 08:57:15 -0000
- Subject: [Bug middle-end/34701] New: ICE in tree-ssa-ccp.c with -fipa-struct-reorg
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
The following testcase fails for me when run with -fipa-struct-reorg:
#include <stdlib.h>
typedef struct baba
{
int a;
int b[10];
} type_struct;
type_struct *str1;
int main()
{
int i;
str1 = malloc (10 * sizeof (type_struct));
for (i=0; i<=9; i++)
str1[i].a = str1[i].b[0];
return 0;
}
The failure is:
try2.c: In function ?main?:
try2.c:12: internal compiler error: in set_lattice_value, at tree-ssa-ccp.c:486
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
--
Summary: ICE in tree-ssa-ccp.c with -fipa-struct-reorg
Product: gcc
Version: 4.3.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: middle-end
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: alond at il dot ibm dot com
GCC build triplet: powerpc-suse-linux
GCC host triplet: powerpc-suse-linux
GCC target triplet: powerpc-suse-linux
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34701