From Jason Turner

[dcl.align]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmpw3vz5adf/{from.md → to.md} +11 -7
tmp/tmpw3vz5adf/{from.md → to.md} RENAMED
@@ -1,19 +1,23 @@
1
  ### Alignment specifier <a id="dcl.align">[[dcl.align]]</a>
2
 
3
  An *alignment-specifier* may be applied to a variable or to a class data
4
  member, but it shall not be applied to a bit-field, a function
5
- parameter, the formal parameter of a catch clause ([[except.handle]]),
6
- or a variable declared with the `register` storage class specifier. An
7
- *alignment-specifier* may also be applied to the declaration of a class
8
- or enumeration type. An *alignment-specifier* with an ellipsis is a pack
9
- expansion ([[temp.variadic]]).
 
 
 
 
10
 
11
  When the *alignment-specifier* is of the form `alignas(`
12
- *assignment-expression* `)`:
13
 
14
- - the *assignment-expression* shall be an integral constant expression
15
  - if the constant expression evaluates to a fundamental alignment, the
16
  alignment requirement of the declared entity shall be the specified
17
  fundamental alignment
18
  - if the constant expression evaluates to an extended alignment and the
19
  implementation supports that alignment in the context of the
 
1
  ### Alignment specifier <a id="dcl.align">[[dcl.align]]</a>
2
 
3
  An *alignment-specifier* may be applied to a variable or to a class data
4
  member, but it shall not be applied to a bit-field, a function
5
+ parameter, an *exception-declaration* ([[except.handle]]), or a
6
+ variable declared with the `register` storage class specifier. An
7
+ *alignment-specifier* may also be applied to the declaration or
8
+ definition of a class (in an *elaborated-type-specifier* (
9
+ [[dcl.type.elab]]) or *class-head* (Clause  [[class]]), respectively)
10
+ and to the declaration or definition of an enumeration (in an
11
+ *opaque-enum-declaration* or *enum-head*, respectively ([[dcl.enum]])).
12
+ An *alignment-specifier* with an ellipsis is a pack expansion (
13
+ [[temp.variadic]]).
14
 
15
  When the *alignment-specifier* is of the form `alignas(`
16
+ *constant-expression* `)`:
17
 
18
+ - the *constant-expression* shall be an integral constant expression
19
  - if the constant expression evaluates to a fundamental alignment, the
20
  alignment requirement of the declared entity shall be the specified
21
  fundamental alignment
22
  - if the constant expression evaluates to an extended alignment and the
23
  implementation supports that alignment in the context of the