Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C++ > Seem it's a bug in n3126.pdf

Thread Tools

Seem it's a bug in n3126.pdf

Posts: n/a
/////bug location:
page: 8
section:1.8 The C++ object model

////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.

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
*bug* *bug* *bug* David Raleigh Arnold Firefox 12 04-02-2007 03:13 AM
Windows ME doesn't seem to send out DHCP request Alexander Skwar Wireless Networking 0 10-02-2005 11:42 AM
laptop/wireless doesn't seem to pick up wireless networks? Bruce Wireless Networking 9 09-24-2005 01:23 AM
router doesn't seem to work =?Utf-8?B?ZA==?= Wireless Networking 2 06-12-2005 06:45 PM
Error downloading page, some pages work great but cant seem to get this one Jack Schafer Perl 1 04-23-2004 08:32 AM