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.pre] Eliminate the redundant block-declaration #6628

Closed
ContingencyOfTautologicalContradictions opened this issue Oct 18, 2023 · 1 comment

Comments

@ContingencyOfTautologicalContradictions

https://eel.is/c++draft/basic.pre#5.1 mentions the following:

name-declaration, block-declaration, or member-declaration ([dcl.pre], [class.mem]),

That block-declaration is already given inside the name-declaration (at https://eel.is/c++draft/dcl.pre#nt:name-declaration), hence it is redundant and should be eliminated

@jensmaurer
Copy link
Member

block-declaration is used for declaration-statement. You can't use a name-declaration there.
When we say name-declaration (or similar), we usually mean the immediate appearance of that grammar non-terminal quoted from a grammar production.

In short, the current phrasing seems intentional and desirable.

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