This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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?


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]