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
[std] There shall be no .1 subclause without a .2 sibling #3525
Comments
[class.union] looks ok |
@jwakely, how so? There is [class.union.anon] nested inside. |
Oh I misread the directive as only talking about a subclause with a single .1 paragraph. But of course ISO doesn't even number paragraphs, it's talking about subclause numbers. Sorry. |
N.B. the problem here is really that we have hanging paragraphs. If the content of [class.union] was in [class.union.xxx] then that would be a sibling of [class.union.anon], and we wouldn't be breaking this rule. In the ISO world, where hanging paragraphs don't exist, a .1 subclause with no .2 sibling would mean the parent has no text of its own and has an "only child". That's obviously pointless and the content of the only child could be moved up into the empty parent. With hanging paragraphs the parent is not actually empty, and an only child can make sense. |
Editorial meeting: This is duplicative of the hanging paragraphs issue #1730. |
cplusplus/papers#533 plans to remove [class.this], making [class.mfct.non-static]'s paragraphs non-hanging. |
I'm using this Perl script to find these:
|
Affected subclauses, partially related to #574. Note that these are the parent subclauses of .1 subclauses without a .2 sibling:
The text was updated successfully, but these errors were encountered: