This is an unofficial snapshot of the ISO/IEC JTC1 SC22 WG21 Core Issues List revision 112e. See for the official list.


2389. Agreement of deduced and explicitly-specified variable types

Section:  []     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.