wg21.cmeerw.net

Proposed resolution (April, 2015):

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

A : following “ enum identifierwithin 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...

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();
  }

History Date User Action Args 2017-02-06 00:00:00adminsetstatus: drwp -> cd4 2015-11-10 00:00:00adminsetstatus: dr -> drwp 2015-05-25 00:00:00adminsetmessages: + msg6052 2015-05-25 00:00:00adminsetstatus: tentatively ready -> dr 2015-04-13 00:00:00adminsetmessages: + msg5314 2015-04-13 00:00:00adminsetstatus: drafting -> tentatively ready 2014-07-08 00:00:00admincreate

Read the original on wg21.cmeerw.net ↗