Skip to content

Commit 142acf0

Browse files
strykuzygoloid
authored andcommitted
[decl.init]/10 Fix specified initialization.
According to [basic.start.static]/2, for objects with static storage duration, zero initialization performs only if constant initialization does not. [decl.init]/10 can be generalized to static initialization. This is an editorial note change.
1 parent 74def77 commit 142acf0

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

source/declarations.tex

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4293,10 +4293,9 @@
42934293
of reference type is ill-formed.
42944294

42954295
\pnum
4296-
\begin{note} Every
4297-
object of static storage duration is
4298-
zero-initialized at program startup before any other initialization
4299-
takes place.
4296+
\begin{note} For every object of static storage duration,
4297+
static initialization\iref{basic.start.static} is performed
4298+
at program startup before any other initialization takes place.
43004299
In some cases, additional initialization is done later.
43014300
\end{note}
43024301

0 commit comments

Comments
 (0)