Skip to content

Commit 4a58c68

Browse files
committed
[stmt.ambig] Don't start a several-paragraph note in the middle of a paragraph;
that makes it hard to notice that the second paragraph is not normative. Fix the note to avoid suggesting that unambiguous cases need disambiguation.
1 parent a361e26 commit 4a58c68

File tree

1 file changed

+15
-10
lines changed

1 file changed

+15
-10
lines changed

source/statements.tex

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -853,17 +853,23 @@
853853

854854
\pnum
855855
There is an ambiguity in the grammar involving
856-
\grammarterm{expression-statement}{s} and \grammarterm{}{declaration}{s}: An
856+
\grammarterm{expression-statement}{s} and \grammarterm{declaration}{s}: An
857857
\grammarterm{expression-statement} with a function-style explicit type
858858
conversion~(\ref{expr.type.conv}) as its leftmost subexpression can be
859-
indistinguishable from a \grammarterm{}{declaration} where the first
860-
\grammarterm{}{declarator} starts with a \tcode{(}. In those cases the
861-
\grammarterm{}{statement} is a \grammarterm{}{declaration}. \enternote To
862-
disambiguate, the whole \grammarterm{}{statement} might have to be examined
863-
to determine if it is an \grammarterm{expression-statement} or a
864-
\grammarterm{}{declaration}. This disambiguates many examples.
859+
indistinguishable from a \grammarterm{declaration} where the first
860+
\grammarterm{declarator} starts with a \tcode{(}. In those cases the
861+
\grammarterm{statement} is a \grammarterm{declaration}.
862+
863+
\pnum
864+
\enternote
865+
If the \grammarterm{statement} cannot syntactically be a
866+
\grammarterm{declaration}, there is no ambiguity,
867+
so this rule does not apply.
868+
The whole \grammarterm{statement} might need to be examined
869+
to determine whether this is the case. This resolves the meaning
870+
of many examples.
865871
\enterexample
866-
assuming \tcode{T} is a
872+
Assuming \tcode{T} is a
867873
\grammarterm{simple-type-specifier}~(\ref{dcl.type}),
868874

869875
\begin{codeblock}
@@ -882,8 +888,7 @@
882888
semantic reasons, but that does not affect the syntactic analysis.
883889
\exitexample
884890

885-
\pnum
886-
The remaining cases are \grammarterm{}{declaration}{s}.
891+
The remaining cases are \grammarterm{declaration}{s}.
887892
\enterexample
888893

889894
\begin{codeblock}

0 commit comments

Comments
 (0)