Umm, I didn't think to search for a corresponding incident and I considered the 
defect to be so minor as to not warrant an issue. The following patch has been 
applied already on 4.2.x:

Index: tests/support/atomic_xchg.cpp
--- tests/support/atomic_xchg.cpp       (revision 1388732)
+++ tests/support/atomic_xchg.cpp       (revision 1388733)
@@ -297,7 +297,7 @@ void run_test (intT, thr_args_base::tag_
     // compute the expected result, "skipping" zeros by incrementing
     // expect twice when it overflows and wraps around to 0 (zero is
     // used as the lock variable in thread_routine() above)
-    intT expect = intT (1);
+    intT volatile expect = intT (1);
const unsigned long nincr = (Args::nthreads_ * Args::nincr_) / 2U;

Reply via email to