cplusplus / nbballot

Handling of NB comments in response to ballots
14 stars 4 forks source link

CA-054 9.7.2 [enum.udecl] Change grammar #461

Closed wg21bot closed 1 year ago

wg21bot commented 1 year ago

Especially given the proposed resolution to CWG2621, https://cplusplus.github.io/CWG/issues/2621.html, it is rather glaring that "using enum" does not follow the lookup rules of elaborated-enum-specifiers (allows typedefs naming enum types) but is subject to syntactic restrictions for elaborated-enum-specifiers (does not allow for typedefs that are alias template specializations).

Change the grammar from:

using elaborated-enum-specifier ;

to:

using enum nested-name-specifieropt identifier ;
using enum nested-name-specifieropt simple-template-id ;
jensmaurer commented 1 year ago

CWG 2022-11-09: Accepted with Modifications. See CWG2621 for details.