Seem it's a bug in n3126.pdf

Discussion in 'C++' started by kuangye, Sep 15, 2010.

  1. kuangye

    kuangye Guest

    /////bug location:
    n3126.pdf
    page: 8
    section:1.8 The C++ object model
    paragraph:5

    ////the following are extract from n3126.pdf, page:8
    ///but I add some notes to indicate my question.
    //

    If a complete object, a data member (9.2), or an array element is of
    class type, its type is considered the most derived class, to
    distinguish it from the class type of any base class subobject; an
    object of a most derived class type or of a non-class type is called a
    most derived object.

    /////the following "Unless it is a bit-field (9.6)" seems to be
    redundant and misleading.
    ////Since a bit-field can't be "a most derived object"
    Unless it is a bit-field (9.6), a most derived object shall have a non-
    zero size and shall occupy one or more bytes of storage. Base class
    subobjects may have zero size. An object of trivially copyable or
    standard-layout type (3.9) shall occupy contiguous bytes of storage.

    Unless an object is a bit-field or a base class subobject of zero
    size, the address of that object is the address of the first byte it
    occupies. Two distinct objects that are neither bit-fields nor base
    class subobjects of zero size shall have distinct addresses.
    kuangye, Sep 15, 2010
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Carl Prothman [MVP]

    Re: Open linked PDF-Files from a PDF-File

    Carl Prothman [MVP], Aug 9, 2003, in forum: ASP .Net
    Replies:
    4
    Views:
    453
    Paul Kuebler
    Aug 12, 2003
  2. Paul Kuebler

    Open linked PDF-Files from a PDF-File

    Paul Kuebler, Aug 12, 2003, in forum: ASP .Net
    Replies:
    8
    Views:
    448
    Carl Prothman [MVP]
    Aug 18, 2003
  3. Replies:
    1
    Views:
    453
    =?Utf-8?B?bGF0aGEgdmFsbGluYXlhZ2Ft?=
    May 5, 2005
  4. Ricardo Pog
    Replies:
    1
    Views:
    400
    Austin Ziegler
    Mar 26, 2008
  5. Sean Nakasone
    Replies:
    1
    Views:
    342
    Farrel Lifson
    Apr 14, 2008
Loading...

Share This Page