Movatterモバイル変換


[0]ホーム

URL:


Issue 2155 - WG21 CWG Issues
Title
Defining classes and enumerations via using-declarations
Status
c++17
Section
_N4868_.9.8.2.3 [namespace.memdef]
Submitter
Richard Smith

Created on2015-07-05.00:00:00 last changed96 months ago

Messages

msg6161 (view)
Date: 2016-11-15.00:00:00

[Moved to DR at the November, 2016 meeting.]

msg5622 (view)
Date: 2015-10-15.00:00:00

Proposed resolution (October, 2015):

  1. Change _N4868_.9.8.2.3 [namespace.memdef] paragraph 1 asfollows:

  2. A declaration in a namespaceN (excluding declarations innested scopes) whosedeclarator-id isanunqualified-id(9.3.4 [dcl.meaning]), whoseclass-head-name (Clause 11 [class]) orenum-head-name (9.8.1 [dcl.enum]) is anidentifier, or whoseelaborated-type-specifier isof the formclass-key attribute-specifier-seqoptidentifier (9.2.9.5 [dcl.type.elab]), or that is anopaque-enum-declaration, declares (or redeclares)itsunqualified-id oridentifier as a memberofN, and may be a definition. [Note:...
  3. Change the grammar of 9.8.1 [dcl.enum] as follows:

    • enum-head:
        enum-key attribute-specifier-seqoptidentifierenum-head-nameopt enum-baseopt
        enum-key attribute-specifier-seqopt nested-name-specifier identifier enum-baseopt
      enum-head-name:
        nested-name-specifieropt identifier
msg5621 (view)
Date: 2015-07-05.00:00:00

The resolution ofissue 1838 wasintended to resolveissue 1021 but doesnot actually do so, as it applies only to declarations with adeclarator-id, which is not true of classes and enumerations.

History
DateUserActionArgs
2018-02-27 00:00:00adminsetmessages: +msg6161
2018-02-27 00:00:00adminsetstatus: dr -> c++17
2017-02-06 00:00:00adminsetstatus: review -> dr
2015-11-10 00:00:00adminsetmessages: +msg5622
2015-07-05 00:00:00admincreate

[8]ページ先頭

©2009-2026 Movatter.jp