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

Why does [basic.scope.class]/2 must be NDR? #1652

Closed
AlexanderMace opened this issue Jul 5, 2017 · 1 comment
Closed

Why does [basic.scope.class]/2 must be NDR? #1652

AlexanderMace opened this issue Jul 5, 2017 · 1 comment

Comments

@AlexanderMace
Copy link

[basic.scope.class]/2:

A name N used in a class S shall refer to the same declaration in its context and when re-evaluated in the completed scope of S. No diagnostic is required for a violation of this rule.

I don't see the need for the NDR. As far as I can tell, it is very easy for any compiler to detect the anomaly indicated by the first part of the sentence above.

@tkoeppe
Copy link
Contributor

tkoeppe commented Jul 5, 2017

This issues list is for editorial issues only. If you would like to discuss the normative content of the standard, please visit isocpp.org, try the std-discussion mailing list, or get in touch with the committee in ways described there.

@tkoeppe tkoeppe closed this as completed Jul 5, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants