Title
Ambiguity with opaque-enum-declaration
Status
drafting
Section
9.7.1 [dcl.enum]
Submitter
Richard Smith

Created on 2015-05-28.00:00:00 last changed 115 months ago

Messages

Date: 2018-04-11.00:00:00

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.)

History
Date User Action Args
2015-05-28 00:00:00admincreate