This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/17661] New: ICE in create_tmp_var
- From: "jakub at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 24 Sep 2004 17:13:44 -0000
- Subject: [Bug tree-optimization/17661] New: ICE in create_tmp_var
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
struct C
{
int *c;
C () : c (0) { }
C (const C &x) : c (x.c) { }
C &operator++ () { return *this; }
};
int
foo (void)
{
int i = 0;
C j;
bool k = false;
for (; i < 30; k ? j : ++j)
k = false, ++i;
return 0;
}
ICEs at any optimization level in create_tmp_var.
Works ok in G++ 3.4.2.
--
Summary: ICE in create_tmp_var
Product: gcc
Version: 4.0.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: tree-optimization
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: jakub at gcc dot gnu dot org
CC: gcc-bugs at gcc dot gnu dot org
GCC target triplet: x86_64-redhat-linux
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17661