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