cplusplus / cplusplus/draft

[basic.scope.pdecl] The locus of using-directives are underspecified

Open
#5,171 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

[basic.lookup.unqual] p1 says

A using-directive is active in a scope S at a program point P if it precedes P...

[basic.lookup.general] p2 says

A program point P is said to follow any declaration in the same translation unit whose locus ([basic.scope.pdecl]) is before P.

A declaration X precedes a program point P in a translation unit L if P follows X

Hence, whether a using-directive is active depends on whether its locus is before P. So, what's the locus of a using-directive? We do not find the clue in [basic.scope.pdecl]. We should add the omitted part about the locus of using-directives

The locus of a using-directive is immediately after the using-directive.

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 with [basic.scope.pdecl] and compare its wording with the cited paragraphs in [basic.lookup.unqual] and [basic.lookup.general]. Add the specified rule for the locus of a using-directive, then verify that the surrounding standard wording consistently determines when the directive precedes a program point.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.