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

2024-03-20


2131. Ambiguity with opaque-enum-declaration

Section: 9.7.1  [dcl.enum]     Status: drafting     Submitter: Richard Smith     Date: 2015-05-28

The declaration

  enum E;

is ambiguous: it could be either a simple-declaration comprising the elaborated-type-specifier enum E and no init-declarator-list, or it could be an opaque-enum-declaration with an omitted enum-base (both of which are ill-formed, for different reasons).

(See also issue 2363.)