File tree Expand file tree Collapse file tree 2 files changed +34
-0
lines changed Expand file tree Collapse file tree 2 files changed +34
-0
lines changed Original file line number Diff line number Diff line change 2862
2862
if that operand is an lvalue and an xvalue otherwise.
2863
2863
The expression \tcode {E1} is sequenced before the expression \tcode {E2}.
2864
2864
2865
+ \pnum
2866
+ \begin {note }
2867
+ A comma expression\iref {expr.comma }
2868
+ appearing as the \grammarterm {expr-or-braced-init-list}
2869
+ of a subscripting expression is deprecated;
2870
+ see \ref {depr.comma.subscript }.
2871
+ \end {note }
2872
+
2865
2873
\pnum
2866
2874
\begin {note }
2867
2875
Despite its asymmetric appearance, subscripting is a commutative
6793
6801
\tcode {5}.
6794
6802
\end {example }
6795
6803
6804
+ \pnum
6805
+ \begin {note }
6806
+ A comma expression
6807
+ appearing as the \grammarterm {expr-or-braced-init-list}
6808
+ of a subscripting expression\iref {expr.sub } is deprecated;
6809
+ see \ref {depr.comma.subscript }.
6810
+ \end {note }
6811
+
6796
6812
\rSec 1[expr.const]{Constant expressions}%
6797
6813
\indextext {expression!constant}
6798
6814
Original file line number Diff line number Diff line change 54
54
\end {codeblock }
55
55
\end {example }
56
56
57
+ \rSec 1[depr.comma.subscript]{Comma operator in subscript expressions}
58
+
59
+ \pnum
60
+ A comma expression\iref {expr.comma }
61
+ appearing as the \grammarterm {expr-or-braced-init-list}
62
+ of a subscripting expression\iref {expr.sub } is deprecated.
63
+ \begin {note }
64
+ A parenthesized comma expression is not deprecated.
65
+ \end {note }
66
+ \begin {example }
67
+ \begin {codeblock }
68
+ void f(int *a, int b, int c) {
69
+ a[b,c]; // deprecated
70
+ a[(b,c)]; // OK
71
+ }
72
+ \end {codeblock }
73
+ \end {example }
74
+
57
75
\rSec 1[depr.array.comp]{Array comparisons}
58
76
59
77
\pnum
You can’t perform that action at this time.
0 commit comments