From Jason Turner

[expr.sub]

Diff to HTML by rtfpessoa

tmp/tmpl2vab0s6/{from.md → to.md} RENAMED
@@ -1,13 +1,15 @@
1
  ### Subscripting <a id="expr.sub">[[expr.sub]]</a>
2
 
3
  A postfix expression followed by an expression in square brackets is a
4
- postfix expression. One of the expressions shall have the type “pointer
5
- to `T`” and the other shall have unscoped enumeration or integral type.
6
- The result is an lvalue of type “`T`.” The type “`T`” shall be a
7
  completely-defined object type.[^5] The expression `E1[E2]` is identical
8
  (by definition) to `*((E1)+(E2))` see  [[expr.unary]] and  [[expr.add]]
9
- for details of `*` and `+` and  [[dcl.array]] for details of arrays.
 
 
10
 
11
  A *braced-init-list* shall not be used with the built-in subscript
12
  operator.
13
 
 
1
  ### Subscripting <a id="expr.sub">[[expr.sub]]</a>
2
 
3
  A postfix expression followed by an expression in square brackets is a
4
+ postfix expression. One of the expressions shall have the type “array of
5
+ `T`” or “pointer to `T`” and the other shall have unscoped enumeration
6
+ or integral type. The result is of type “`T`.” The type “`T`” shall be a
7
  completely-defined object type.[^5] The expression `E1[E2]` is identical
8
  (by definition) to `*((E1)+(E2))` see  [[expr.unary]] and  [[expr.add]]
9
+ for details of `*` and `+` and  [[dcl.array]] for details of arrays. ,
10
+ except that in the case of an array operand, the result is an lvalue if
11
+ that operand is an lvalue and an xvalue otherwise.
12
 
13
  A *braced-init-list* shall not be used with the built-in subscript
14
  operator.
15