From Jason Turner

[dcl.constinit]

Diff to HTML by rtfpessoa

tmp/tmp3wlmlfpb/{from.md → to.md} RENAMED
@@ -5,15 +5,16 @@ variable with static or thread storage duration. If the specifier is
5
  applied to any declaration of a variable, it shall be applied to the
6
  initializing declaration. No diagnostic is required if no `constinit`
7
  declaration is reachable at the point of the initializing declaration.
8
 
9
  If a variable declared with the `constinit` specifier has dynamic
10
- initialization [[basic.start.dynamic]], the program is ill-formed.
 
 
11
 
12
  [*Note 1*: The `constinit` specifier ensures that the variable is
13
- initialized during static initialization
14
- [[basic.start.static]]. — *end note*]
15
 
16
  [*Example 1*:
17
 
18
  ``` cpp
19
  const char * g() { return "dynamic initialization"; }
 
5
  applied to any declaration of a variable, it shall be applied to the
6
  initializing declaration. No diagnostic is required if no `constinit`
7
  declaration is reachable at the point of the initializing declaration.
8
 
9
  If a variable declared with the `constinit` specifier has dynamic
10
+ initialization [[basic.start.dynamic]], the program is ill-formed, even
11
+ if the implementation would perform that initialization as a static
12
+ initialization [[basic.start.static]].
13
 
14
  [*Note 1*: The `constinit` specifier ensures that the variable is
15
+ initialized during static initialization. — *end note*]
 
16
 
17
  [*Example 1*:
18
 
19
  ``` cpp
20
  const char * g() { return "dynamic initialization"; }