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

The non-normative wording "local variable" should not survive in [basic.stc.static] #4567

Closed
xmh0511 opened this issue Mar 30, 2021 · 2 comments · Fixed by #4575
Closed

The non-normative wording "local variable" should not survive in [basic.stc.static] #4567

xmh0511 opened this issue Mar 30, 2021 · 2 comments · Fixed by #4575
Assignees

Comments

@xmh0511
Copy link
Contributor

xmh0511 commented Mar 30, 2021

Since the "non-local variable " has been completely excised after P1787. However, there's still a similar wording survived in the current draft

All variables which do not have dynamic storage duration, do not have thread storage duration, and are not local have static storage duration.

Should we say

All variables which do not have dynamic storage duration, do not have thread storage duration, and do not belong to block and function parameter scope have static storage duration.

To be consistent with these prior modifications.

@xmh0511 xmh0511 changed the title The non-normative wording "local variable" might not survive in [basic.stc.static] The non-normative wording "local variable" shoul not survive in [basic.stc.static] Mar 30, 2021
@jensmaurer jensmaurer changed the title The non-normative wording "local variable" shoul not survive in [basic.stc.static] The non-normative wording "local variable" should not survive in [basic.stc.static] Apr 2, 2021
@jensmaurer jensmaurer self-assigned this Apr 2, 2021
@FrankHB
Copy link
Contributor

FrankHB commented Apr 4, 2021

Or better "are not declared in"?

I'm neutral to preserve "local" or not (though "local scope" has been removed away after C++03 someday, it should be still familiar to many users), but "belong" seems somewhat strange to me.

@xmh0511
Copy link
Contributor Author

xmh0511 commented Apr 4, 2021

Or better "are not declared in"?

I'm neutral to preserve "local" or not (though "local scope" has been removed away after C++03 someday, it should be still familiar to many users), but "belong" seems somewhat strange to me.

A declaration that inhabits a scope does not mean the associated entity belongs to that scope.

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

Successfully merging a pull request may close this issue.

3 participants