Actions

icon Post
text/html Subscribe
text/html Unsubscribe

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cxx-abi-dev] Long bitfields in PODs


  • To: mark@xxxxxxxxxxxxxxxx
  • Subject: Re: [cxx-abi-dev] Long bitfields in PODs
  • From: Jason Merrill <jason@xxxxxxxxxx>
  • Date: Wed, 14 May 2003 14:49:00 -0400

On Tue, 13 May 2003 13:11:45 -0700, Mark Mitchell <mark@xxxxxxxxxxxxxxxx> wrote:

> A type like:
>
>   struct S {
>     int i : 8192;
>   };
>
> is a POD.
>
> According to 2.4, that means that the underlying C layout rules for
> the system should be used.  Unfortunately, that kind of type is not
> valid in C.
>
> I believe that all types with bitfields wider than their declared
> types should be considered non-PODs for the purposes of layout.

I don't see why we need to consider it a non-POD.  It seems to me that if
there are no applicable C layout rules, then whatever we do vacuously
follows the rules.

Jason