[cfe-commits] protected anonymous union member not visible in derived class

Nikola Smiljanic popizdeh at gmail.com
Wed Sep 5 00:47:02 PDT 2012


Ping

On Wed, Aug 22, 2012 at 3:31 PM, Nikola Smiljanic <popizdeh at gmail.com> wrote:
> On Fri, Aug 17, 2012 at 10:11 PM, John McCall <rjmccall at apple.com> wrote:
>> This is from building value.x, right?  That's not the implicit member access case.
>> It is definitely possible for an actual base expression to be non-null.
>
> This should be it (test included).
>
> However I do have some questions:
>
> I'm using the real decl only for building the fist member access. The
> rest of them are still built with FieldDecls that are obtained from
> indirectField. There's even a FIXIT that says "these are somewhat
> meaningless", but I don't know what it refers to. Should this stay the
> same or should I use the real decl here too?
>
> The 'if (!baseVariable)' block ends with 'baseObjectIsPointer = false'
> but this variable is never used after this. I'm guessing that you
> wanted the variable to remain valid throughout the function, but maybe
> the assignment should be removed?



More information about the cfe-commits mailing list