From Jason Turner

[basic.stc.auto]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmp_310wwgo/{from.md → to.md} +9 -10
tmp/tmp_310wwgo/{from.md → to.md} RENAMED
@@ -1,16 +1,15 @@
1
  ### Automatic storage duration <a id="basic.stc.auto">[[basic.stc.auto]]</a>
2
 
3
- Block-scope variables explicitly declared `register` or not explicitly
4
- declared `static` or `extern` have *automatic storage duration*. The
5
- storage for these entities lasts until the block in which they are
6
- created exits.
7
 
8
- These variables are initialized and destroyed as described in 
9
- [[stmt.dcl]].
10
 
11
  If a variable with automatic storage duration has initialization or a
12
- destructor with side effects, it shall not be destroyed before the end
13
- of its block, nor shall it be eliminated as an optimization even if it
14
- appears to be unused, except that a class object or its copy/move may be
15
- eliminated as specified in  [[class.copy]].
16
 
 
1
  ### Automatic storage duration <a id="basic.stc.auto">[[basic.stc.auto]]</a>
2
 
3
+ Block-scope variables not explicitly declared `static`, `thread_local`,
4
+ or `extern` have *automatic storage duration*. The storage for these
5
+ entities lasts until the block in which they are created exits.
 
6
 
7
+ [*Note 1*: These variables are initialized and destroyed as described
8
+ in  [[stmt.dcl]]. — *end note*]
9
 
10
  If a variable with automatic storage duration has initialization or a
11
+ destructor with side effects, an implementation shall not destroy it
12
+ before the end of its block nor eliminate it as an optimization, even if
13
+ it appears to be unused, except that a class object or its copy/move may
14
+ be eliminated as specified in  [[class.copy]].
15