cplusplus / cplusplus/draft

[namespace.udecl]/10 is hard to read

Open
#7,910 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

P3-Other
Dominant language
TeX
Stars
221
Forks
813
Avg merge
16h 4m
Merged PRs (30d)
36

Description

If a declaration named by a using-declaration that inhabits the target scope of another declaration B potentially conflicts with it ([basic.scope.scope]), and either is reachable from the other, the program is ill-formed unless B is name-independent and the using-declaration precedes B.

Can we change it to something like this:

If a using-declaration that inhabits the target scope of a declaration B names a declaration A that potentially conflicts with B, [...]

(I know we talked about this sentence in CWG at length when we added the "name-independent" stuff, but it seems like we didn't do much about it...)

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at [namespace.udecl]/10 in the C++ draft and compare the current sentence with the proposed reordered wording. Done means the paragraph is easier to read while retaining the existing conditions about declarations A and B, reachability, name-independence, and declaration order.

Written by the indexing model from the issue text.

Assessment

Tech stack
tex
Domain
documentation
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.