This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: g++ and aliasing bools
- From: kenner at vlsi1 dot ultra dot nyu dot edu (Richard Kenner)
- To: mark at codesourcery dot com
- Cc: gcc at gcc dot gnu dot org
- Date: Thu, 24 Jan 02 17:40:22 EST
- Subject: Re: g++ and aliasing bools
Now, obviously, we never read or write zero-sized things -- but
different alias sets also implies that &x != &y which is false.
I don't think so.
Consider the Ada record:
type r is record
f1: integer;
f2: string (1..0);
f3: float;
end record;
F2 and F3 will have different alias sets, but every instance of F2 and F3
will be at the same address.