This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: g++ and aliasing bools
- From: Paolo Carlini <pcarlini at unitus dot it>
- To: Joe Buck <jbuck at synopsys dot COM>
- Cc: gcc at gcc dot gnu dot org
- Date: Fri, 25 Jan 2002 20:45:06 +0100
- Subject: Re: g++ and aliasing bools
- References: <200201251936.LAA21076@atrus.synopsys.com>
Joe Buck wrote:
> cxx_get_alias_set ()
> {
> if (AGGREGATE_TYPE && HAS_BASECLASSES && HAS_VIRTUALS)
> return 0;
> return c_get_alias_set();
> }
Should'nt this be in pseudocode, even more safely:
{
if (AGGREGATE_TYPE && (HAS_BASECLASSES || HAS_VIRTUALS))
return 0;
return c_get_alias_set();
}
???
Otherwise, I'm all with your way of approaching the issue!!!
Cheers,
Paolo.