CWG Issue 2157 (original) (raw)

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

2025-04-13


2157. Further disambiguation of enumeration elaborated-type-specifier

Section: 9.2.9.5 [dcl.type.elab]Status: CD4Submitter: Richard SmithDate: 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.8.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...