Title
Section 8.5 paragraph 9 should state it only applies to non-static objects
Status
cd1
Section
9.4 [dcl.init]
Submitter
Judy Ward

Created on 1998-12-15.00:00:00 last changed 189 months ago

Messages

Date: 2000-10-15.00:00:00

Proposed resolution (10/00): In 9.4 [dcl.init] paragraph 9, replace

Otherwise, if no initializer is specified for an object..."
with
Otherwise, if no initializer is specified for a non-static object...
Date: 2022-11-20.07:54:16

Paragraph 9 of 9.4 [dcl.init] says:

If no initializer is specified for an object, and the object is of (possibly cv-qualified) non-POD class type (or array thereof), the object shall be default-initialized; if the object is of const-qualified type, the underlying class type shall have a user-declared default constructor. Otherwise, if no initializer is specified for an object, the object and its subobjects, if any, have an indeterminate initial value; if the object or any of its subobjects are of const-qualified type, the program is ill-formed.
It should be made clear that this paragraph does not apply to static objects.

Proposed resolution (10/00): In 9.4 [dcl.init] paragraph 9, replace

Otherwise, if no initializer is specified for an object..."
with
Otherwise, if no initializer is specified for a non-static object...
History
Date User Action Args
2008-10-05 00:00:00adminsetstatus: wp -> cd1
2007-01-14 00:00:00adminsetstatus: tc1 -> wp
2003-04-25 00:00:00adminsetstatus: dr -> tc1
2000-11-18 00:00:00adminsetstatus: ready -> dr
2000-05-21 00:00:00adminsetstatus: review -> ready
2000-02-23 00:00:00adminsetmessages: + msg224
2000-02-23 00:00:00adminsetstatus: open -> review
1998-12-15 00:00:00admincreate