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

[class.member.lookup]/1 is confusing #2303

Closed
AlexanderMace opened this issue Aug 21, 2018 · 0 comments
Closed

[class.member.lookup]/1 is confusing #2303

AlexanderMace opened this issue Aug 21, 2018 · 0 comments
Assignees

Comments

@AlexanderMace
Copy link

AlexanderMace commented Aug 21, 2018

[class.member.lookup]/1:

Member name lookup determines the meaning of a name (id-expression) in a class scope (6.3.7). Name lookup can result in an ambiguity, in which case the program is ill-formed. For an id-expression, name lookup begins in the class scope of this; for a qualified-id, name lookup begins in the scope of the nested-name-specifier. Name lookup takes place before access control (6.4, Clause 14).

The highlighted text is confusing as it assumes that an id-expression is not a qualified-id The term id-expression above should be replaced by unqualified-id..

A second point to consider: why is the word ambiguity in italics?

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