g++ and aliasing bools

Paolo Carlini pcarlini@unitus.it
Fri Jan 25 12:10:00 GMT 2002


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.




More information about the Gcc mailing list