Skip to content

Commit 1381b02

Browse files
committed
CWG2242 ODR violation with constant initialization possibly omitted
Also fixes NB US 5-033 (C++23 CD).
1 parent 3f47d25 commit 1381b02

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

source/basic.tex

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -675,6 +675,11 @@
675675
\item In each such definition, corresponding entities shall have the
676676
same language linkage.
677677

678+
\item In each such definition,
679+
const objects with static or thread storage duration
680+
shall be constant-initialized if
681+
the object is constant-initialized in any such definition.
682+
678683
\item In each such definition, the overloaded operators referred
679684
to, the implicit calls to conversion functions, constructors, operator
680685
new functions and operator delete functions, shall refer to the same

0 commit comments

Comments
 (0)