This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Possible problem wiht nonoverlapping_component_refs_p
- From: kenner at vlsi1 dot ultra dot nyu dot edu (Richard Kenner)
- To: rth at redhat dot com
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Wed, 5 Dec 01 21:47:07 EST
- Subject: Possible problem wiht nonoverlapping_component_refs_p
Consider:
struct T1 {int a, b; };
struct T2 {struct T1 x; };
struct T3 {int x; struct T1 y; };
union uu {struct T2 t2; struct T3 t3; } u;
Now consider uu.t2.x.b and uu.t3.y.a.
These two overlap in memory, but, as I understand that routine, we'll return
that they don't overlap because they are the same field in the same structure.
Am I missing something?