[cfe-dev] Visiting anonymous unions

Philip Craig philipjcraig at gmail.com
Fri Aug 17 06:46:56 PDT 2012


On Fri, Aug 17, 2012 at 11:23 PM, Sergejs Belajevs
<sergejs.belajevs at gmail.com> wrote:
> but it doesn't work (VisitRecordType isn't get called) for code like:
>
> void foo()
> {
>   union { int a; };
>   a = 5;
> }

Is that valid code? clang gives errors with the default options.



More information about the cfe-dev mailing list