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

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

Open
xmh0511 opened this issue Dec 23, 2021 · 0 comments
Open

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

xmh0511 opened this issue Dec 23, 2021 · 0 comments

Comments

@xmh0511
Copy link
Contributor

xmh0511 commented Dec 23, 2021

[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.

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

1 participant