[basic.def] Fix note -- declarations cannot be empty#8405
Conversation
As noted during CWG review of another issue.
|
Why not? An empty-declaration can appear as a name-declaration or a member-declaration, both of which are included in the definition of "declaration" given by [basic.pre]/5. |
|
Indeed. |
|
@AlisdairM , please re-assess. |
|
Reviewing the text again, the note is attached to a sentence that starts: |
|
It's not clear to me whether the note is only attached to the last sentence or the paragraph as a whole. The paragraph starts with
Emphasis on "may". It doesn't necessarily do so (and in the case of an empty-declaration, which is a "declaration", it does not. Everything makes sense to me. The last bullet (which you're not deleting) says
This presumably refers to |
|
Withdrawing. After a more carefully re-reading I agree with Jan. Everything in that list is about not declaring a name, the complement to the normative sentence. |
As noted during CWG review of another issue.