Protected union member not visible in derived class

Hi all,

I have this test program:

It's a bug; the access logic is not "looking through" anonymous struct and union members correctly when imposing the class.protected restriction.

John.

The protected union member of the base class is not visible in B.
Is there something in the standard that mandates this, or should I file a bug?

It's a bug; the access logic is not "looking through" anonymous struct
and union members correctly when imposing the class.protected restriction.

John.

Ok, I've filed it

http://llvm.org/bugs/show_bug.cgi?id=12788

Best regards,
Martin