File tree Expand file tree Collapse file tree 1 file changed +11
-9
lines changed Expand file tree Collapse file tree 1 file changed +11
-9
lines changed Original file line number Diff line number Diff line change 2379
2379
\indextext {initialization|(}
2380
2380
2381
2381
\pnum
2382
- A declarator can specify an initial value for the
2383
- identifier being declared.
2384
- The identifier designates a variable being initialized.
2385
- The process of initialization described in the
2386
- remainder of~\ref {dcl.init }
2387
- applies also to initializations
2388
- specified by other syntactic contexts, such as the initialization
2389
- of function parameters\iref {expr.call } or
2390
- the initialization of return values\iref {stmt.return }.
2382
+ The process of initialization described in this subclause applies to
2383
+ all initializations regardless of syntactic context, including the
2384
+ initialization of a function parameter\iref {expr.call }, the
2385
+ initialization of a return value\iref {stmt.return }, or when an
2386
+ initializer follows a declarator.
2391
2387
2392
2388
\begin {bnf }
2393
2389
\nontermdef {initializer}\br
2442
2438
braced-init-list
2443
2439
\end {bnf }
2444
2440
2441
+ \begin {note }
2442
+ The rules in this subclause apply even if the grammar permits only
2443
+ the \grammarterm {brace-or-equal-initializer} form
2444
+ of \grammarterm {initializer} in a given context.
2445
+ \end {note }
2446
+
2445
2447
\pnum
2446
2448
Except for objects declared with the \tcode {constexpr} specifier, for which see~\ref {dcl.constexpr },
2447
2449
an \grammarterm {initializer} in the definition of a variable can consist of
You can’t perform that action at this time.
0 commit comments