Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[dcl.enum] Duplicate sentences about redeclarations #1826

Closed
brevzin opened this issue Nov 20, 2017 · 2 comments
Closed

[dcl.enum] Duplicate sentences about redeclarations #1826

brevzin opened this issue Nov 20, 2017 · 2 comments
Assignees
Labels
cwg Issue must be reviewed by CWG.

Comments

@brevzin
Copy link
Contributor

brevzin commented Nov 20, 2017

[dcl.enum]/4:

If the enum-key is followed by a nested-name-specifier, the enum-specifier shall refer to an enumeration that was previously declared directly in the class or namespace to which the nested-name-specifier refers (i.e., neither inherited nor introduced by a using-declaration), and the enum-specifier shall appear in a namespace enclosing the previous declaration.

Is mostly repeated in [dcl.enum]/12:

If an enum-head contains a nested-name-specifier, the enum-specifier shall refer to an enumeration that was previously declared directly in the class or namespace to which the nested-name-specifier refers, or in an element of the inline namespace set ([namespace.def]) of that namespace (i.e., not merely inherited or introduced by a using-declaration), and the enum-specifier shall appear in a namespace enclosing the previous declaration.

One of these was probably intended to replace the other. I don't know which.

@jensmaurer jensmaurer changed the title Duplicate sentences in dcl.enum [dcl.enum] Duplicate sentences about redeclarations Nov 20, 2017
@jensmaurer
Copy link
Member

I don't know what happened here, but it seems p12 should go, except that the "inline namespace set" must be integrated into p4.

@cpplearner
Copy link
Contributor

[dcl.enum]/12 was added by CWG 2156.

@jensmaurer jensmaurer added the cwg Issue must be reviewed by CWG. label Apr 20, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cwg Issue must be reviewed by CWG.
Projects
None yet
Development

No branches or pull requests

3 participants