Title
Incorrect comment in example
Status
ready
Section
9.4.1 [dcl.init.general]
Submitter
Jiang An

Created on 2022-05-24.00:00:00 last changed 1 month ago

Messages

Date: 2022-08-26.21:45:07

Proposed resolution (approved by CWG 2022-08-26):

Change in 9.4.1 [dcl.init.general] bullet 16.6.1 as follows:

[Example 2: T x = T(T(T())); calls the T default constructor to initialize value-initializes x. —end example]
Date: 2022-05-24.00:00:00

Subclause 9.4.1 [dcl.init.general] bullet 16.6.1 says:

[Example 2: T x = T(T(T())); calls the T default constructor to initialize x. —end example]

This is incorrect; in some situations, the default constructor is not invoked (see 9.4.1 [dcl.init.general] paragraph 9).

History
Date User Action Args
2022-08-26 21:45:07adminsetstatus: open -> ready
2022-08-23 21:37:22adminsetmessages: + msg6899
2022-05-24 00:00:00admincreate