Title
Value initialization and defaulted constructors (part 2)
Status
cd3
Section
9.4 [dcl.init]
Submitter
Jason Merrill

Created on 2011-06-28.00:00:00 last changed 130 months ago

Messages

Date: 2012-02-15.00:00:00

[Voted into the WP at the February, 2012 meeting; moved to DR at the October, 2012 meeting.]

Date: 2011-08-15.00:00:00

Proposed resolution (August, 2011):

This issue is resolved by the resolution of issue 1301.

Date: 2012-11-03.00:00:00

According to the current rules of 9.4 [dcl.init], given a class like

  struct A {
    int i;
    A() = default;
    A(int i): i(i) { }
  };

value-initialization leaves A::i uninitialized. This seems like an oversight.

History
Date User Action Args
2014-03-03 00:00:00adminsetstatus: drwp -> cd3
2012-11-03 00:00:00adminsetmessages: + msg4171
2012-11-03 00:00:00adminsetstatus: dr -> drwp
2012-02-27 00:00:00adminsetmessages: + msg3817
2012-02-27 00:00:00adminsetstatus: ready -> dr
2011-06-28 00:00:00admincreate