Skip to content

Commit 394a016

Browse files
burblebeetkoeppe
authored andcommitted
CWG2620 Nonsensical disambiguation rule
1 parent 07b5caa commit 394a016

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

source/declarations.tex

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2323,12 +2323,16 @@
23232323
\pnum
23242324
The ambiguity arising from the similarity between a function-style cast and
23252325
a declaration mentioned in~\ref{stmt.ambig} can also occur in the context of a declaration.
2326-
In that context, the choice is between a function declaration with
2327-
a redundant set of parentheses around a parameter name and an object declaration
2328-
with a function-style cast as the initializer.
2326+
In that context, the choice is between
2327+
an object declaration
2328+
with a function-style cast as the initializer and
2329+
a declaration involving a function declarator
2330+
with a redundant set of parentheses around a parameter name.
23292331
Just as for the ambiguities mentioned in~\ref{stmt.ambig},
2330-
the resolution is to consider any construct that could possibly
2331-
be a declaration a declaration.
2332+
the resolution is to consider any construct,
2333+
such as the potential parameter declaration,
2334+
that could possibly be a declaration
2335+
to be a declaration.
23322336
\begin{note}
23332337
A declaration can be explicitly disambiguated by adding parentheses
23342338
around the argument.

0 commit comments

Comments
 (0)