A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://cplusplus.github.io/CWG/issues/1966.html below:

CWG Issue 1966

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

1966. Colon following enumeration elaborated-type-specifierSection: 9.8.1  [dcl.enum]     Status: CD4     Submitter: Daveed Vandevoorde     Date: 2014-07-08

[Moved to DR at the May, 2015 meeting.]

The resolution of issue 1514 was intended to apply whenever enum identifier appears; however, the fact that the disambiguation rule appears in the description of the enum-specifier makes it unclear that it is intended to apply in other contexts such as:

  enum E { e1 };
  void f() {
    false ? new enum E : int();
  }

Proposed resolution (April, 2015):

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

A : following “enum identifier” within the decl-specifier-seq of a member-declaration is parsed as part of an enum-base. [Note: This resolves a potential ambiguity between the declaration of an enumeration with an enum-base and the declaration of an unnamed bit-field of enumeration type...

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4