This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/17273] [4.0 Regression] ICE in get_indirect_ref_operands
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 15 Sep 2004 06:37:03 -0000
- Subject: [Bug tree-optimization/17273] [4.0 Regression] ICE in get_indirect_ref_operands
- References: <20040901234529.17273.mueller@kde.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-09-15 06:37 -------
Here is another example which happens also for C:
struct A { int i; };
struct B { struct A a; };
void f(struct A*, struct A*);
#define bool _Bool
void bar(bool b)
{
struct B * D1601;
struct A D1576;
struct A * D1593;
struct B * D1592;
struct B D1575;
D1575 = (struct B){};
if (b) D1592 = &D1575; else D1592 = &D1575;
D1593 = &D1592->a; // <-- we are prograting &D1575 into here.
D1576 = (struct A){};
f (D1593, &D1576);
}
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17273