D
Denis Remezov
Ioannis said:In the union
union test { int i; int j; }a;
Is there any guarantee that a.i and a.j share the same memory address?
Pointers to data members of the same union object compare equal [5.9/2].
Therefore, they represent the same address [5.10/1].
(A separate permission to inspect the common initial sequence [9.2],
I assume, would not be sufficient to guarantee that).
Denis