[PATCH] Microsoft Bitfields and VBases

Richard Smith richard at metafoo.co.uk
Tue Nov 5 15:13:36 PST 2013


On Tue, Nov 5, 2013 at 3:13 PM, Richard Smith <richard at metafoo.co.uk> wrote:

>
>   Oh wow. That's ... weird. Patch LGTM.
>
>
> ================
> Comment at: test/Layout/ms-x86-bitfields-vbases.cpp:61
> @@ +60,3 @@
> +
> +struct D : virtual B0 { char a : 1; char b; };
> +
> ----------------
> What happens for:
>
>   struct E : virtual B0 { char a, b, c, d : 4, e : 4, : 0; };
>

... and also

  struct F : virtual B0 { char a, b, c, d : 4, e : 4; };


> ? Do we get extra padding?
>
>
> http://llvm-reviews.chandlerc.com/D2103
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20131105/db26d7d1/attachment.html>


More information about the cfe-commits mailing list