Skip to content

Commit cd6c5bf

Browse files
[diff.expr] Update incorrect comment about C (cplusplus#8933)
arr2 is a constraint violation in C, rather than being valid.
1 parent 2518250 commit cd6c5bf

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

source/compatibility.tex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3067,8 +3067,8 @@
30673067
\begin{codeblock}
30683068
int arr1[5];
30693069
int arr2[5];
3070-
int same = arr1 == arr2; // valid C, ill-formed C++
3071-
int idem = arr1 == +arr2; // valid in both C and C++
3070+
int same = arr1 == arr2; // valid C, ill-formed \Cpp{}
3071+
int idem = arr1 == +arr2; // valid \Cpp{}, constraint violation in C
30723072
\end{codeblock}
30733073
\end{example}
30743074
\howwide

0 commit comments

Comments
 (0)