File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change 2323
2323
\pnum
2324
2324
The ambiguity arising from the similarity between a function-style cast and
2325
2325
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.
2329
2331
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.
2332
2336
\begin {note }
2333
2337
A declaration can be explicitly disambiguated by adding parentheses
2334
2338
around the argument.
You can’t perform that action at this time.
0 commit comments