[cfe-dev] Fwd: Review of transparent_union patch
Anders Johnsen
skabet at gmail.com
Mon Jan 26 11:45:13 PST 2009
> Something like the following:
> struct x {int x; int* y;};
> typedef struct x a __attribute((transparent_union));
>
> This isn't valid, but it looks like your patch accepts it.
I just tested this, and it looks like it worked:
test/Sema/transparent-union-pointer.c:3:33: warning:
'transparent_union' attribute only applies to union types
typedef struct x a __attribute((transparent_union));
^
>
> -Eli
>
Anders
More information about the cfe-dev
mailing list