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


2157. Further disambiguation of enumeration elaborated-type-specifier

Section:  [dcl.type.elab]     Status: CD4     Submitter: Richard Smith     Date: 2015-07-06

[Adopted at the February, 2016 meeting.]

The resolution of issue 1966 does not apply to the case where the enumeration name is qualified, e.g.,

  enum E : int;
  struct X {
    enum ::E : int();

Proposed resolution (October, 2015):

Change 9.7.1 [dcl.enum] paragraph 1 as follows:

...A : following “enum nested-name-specifieropt identifier” within the decl-specifier-seq of a member-declaration is parsed as part of an enum-base. [Note: This resolves a potential ambiguity...