From 5216f9df71d429b4ab39b54f600479136133d6d0 Mon Sep 17 00:00:00 2001 From: Jay Ghiron <55773281+Halalaluyafail3@users.noreply.github.com> Date: Wed, 8 Apr 2026 15:51:59 -0400 Subject: [PATCH 1/2] [diff.expr] Update incorrect comment +arr2 is a constraint violation in C, rather than being valid. --- source/compatibility.tex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/compatibility.tex b/source/compatibility.tex index edbd9196d1..271210d1f6 100644 --- a/source/compatibility.tex +++ b/source/compatibility.tex @@ -3077,7 +3077,7 @@ int arr1[5]; int arr2[5]; int same = arr1 == arr2; // valid C, ill-formed C++ -int idem = arr1 == +arr2; // valid in both C and C++ +int idem = arr1 == +arr2; // valid C++, constraint violation in C \end{codeblock} \end{example} \howwide From 0320f63f95c9b171ce5714db5d5fbcc06970ae2f Mon Sep 17 00:00:00 2001 From: Jay Ghiron <55773281+Halalaluyafail3@users.noreply.github.com> Date: Sat, 11 Apr 2026 16:32:58 -0400 Subject: [PATCH 2/2] [diff.expr] Fix incorrect usage of C++ Also fixes the line that was not causing a check failure. --- source/compatibility.tex | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/compatibility.tex b/source/compatibility.tex index 271210d1f6..1ec4a31426 100644 --- a/source/compatibility.tex +++ b/source/compatibility.tex @@ -3076,8 +3076,8 @@ \begin{codeblock} int arr1[5]; int arr2[5]; -int same = arr1 == arr2; // valid C, ill-formed C++ -int idem = arr1 == +arr2; // valid C++, constraint violation in C +int same = arr1 == arr2; // valid C, ill-formed \Cpp{} +int idem = arr1 == +arr2; // valid \Cpp{}, constraint violation in C \end{codeblock} \end{example} \howwide