From Jason Turner

[basic.stc.static]

Diff to HTML by rtfpessoa

tmp/tmpw74s0hop/{from.md → to.md} RENAMED
@@ -1,20 +1,22 @@
1
  ### Static storage duration <a id="basic.stc.static">[[basic.stc.static]]</a>
2
 
3
  All variables which do not have dynamic storage duration, do not have
4
  thread storage duration, and are not local have *static storage
5
  duration*. The storage for these entities shall last for the duration of
6
- the program ([[basic.start.init]], [[basic.start.term]]).
7
 
8
  If a variable with static storage duration has initialization or a
9
  destructor with side effects, it shall not be eliminated even if it
10
  appears to be unused, except that a class object or its copy/move may be
11
  eliminated as specified in  [[class.copy]].
12
 
13
  The keyword `static` can be used to declare a local variable with static
14
- storage duration. [[stmt.dcl]] describes the initialization of local
15
- `static` variables; [[basic.start.term]] describes the destruction of
16
- local `static` variables.
 
 
17
 
18
  The keyword `static` applied to a class data member in a class
19
  definition gives the data member static storage duration.
20
 
 
1
  ### Static storage duration <a id="basic.stc.static">[[basic.stc.static]]</a>
2
 
3
  All variables which do not have dynamic storage duration, do not have
4
  thread storage duration, and are not local have *static storage
5
  duration*. The storage for these entities shall last for the duration of
6
+ the program ([[basic.start.static]], [[basic.start.term]]).
7
 
8
  If a variable with static storage duration has initialization or a
9
  destructor with side effects, it shall not be eliminated even if it
10
  appears to be unused, except that a class object or its copy/move may be
11
  eliminated as specified in  [[class.copy]].
12
 
13
  The keyword `static` can be used to declare a local variable with static
14
+ storage duration.
15
+
16
+ [*Note 1*: [[stmt.dcl]] describes the initialization of local `static`
17
+ variables; [[basic.start.term]] describes the destruction of local
18
+ `static` variables. — *end note*]
19
 
20
  The keyword `static` applied to a class data member in a class
21
  definition gives the data member static storage duration.
22