Title
opaque-enum-declaration in alias-declaration?
Status
nad
Section
9.2.4 [dcl.typedef]
Submitter
Fedor Sergeev

Created on 2014-07-07.00:00:00 last changed 122 months ago

Messages

Date: 2014-11-15.00:00:00

Rationale (November, 2014):

A type-id is intended as a reference to a type, but the opaque enumeration syntax is intended as a declaration, not a reference like an elaborated-type-specifier, so the current rules are as intended.

Date: 2022-11-20.07:54:16

The grammar does not allow for a declaration of the form

  using T = enum class E : int;

However, it is widely accepted by current implementations. Should the rules be changed to accommodate this usage?

History
Date User Action Args
2014-11-24 00:00:00adminsetmessages: + msg5276
2014-07-07 00:00:00admincreate