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 2388
2388
\indextext {initialization|(}
2389
2389
2390
2390
\pnum
2391
- A declarator can specify an initial value for the
2392
- identifier being declared.
2393
- The identifier designates a variable being initialized.
2394
- The process of initialization described in the
2395
- remainder of~\ref {dcl.init }
2396
- applies also to initializations
2397
- specified by other syntactic contexts, such as the initialization
2398
- of function parameters (\ref {expr.call }) or
2399
- the initialization of return values (\ref {stmt.return }).
2391
+ The process of initialization described in this subclause applies to
2392
+ all initializations regardless of syntactic context, including the
2393
+ initialization of a function parameter (\ref {expr.call }), the
2394
+ initialization of a return value (\ref {stmt.return }), or when an
2395
+ initializer follows a declarator.
2400
2396
2401
2397
\begin {bnf }
2402
2398
\nontermdef {initializer}\br
2434
2430
braced-init-list
2435
2431
\end {bnf }
2436
2432
2433
+ \begin {note }
2434
+ The rules in this subclause apply even if the grammar permits only
2435
+ the \grammarterm {brace-or-equal-initializer} form
2436
+ of \grammarterm {initializer} in a given context.
2437
+ \end {note }
2438
+
2437
2439
\pnum
2438
2440
Except for objects declared with the \tcode {constexpr} specifier, for which see~\ref {dcl.constexpr },
2439
2441
an \grammarterm {initializer} in the definition of a variable can consist of
You can’t perform that action at this time.
0 commit comments