This is an unofficial snapshot of the ISO/IEC JTC1 SC22 WG21 Core Issues List revision 114a. See http://www.open-std.org/jtc1/sc22/wg21/ for the official list.

2024-04-18


2389. Agreement of deduced and explicitly-specified variable types

Section: 9.2.9.7  [dcl.spec.auto]     Status: CD6     Submitter: Nina Ranns     Date: 2018-10-24

The Standard does not explicitly address whether an example like the following is well-formed or not:

  struct S {
    static int i;
  };
  auto S::i = 23;

There is implementation divergence on the handling of this example.

Notes from the July, 2019 meeting

Editorially add the example as well-formed; see editorial issue 2979.

CWG 2019-09-16

Approved editorial change 3227.