On 08/18/2011 06:33 PM, Richard Henderson wrote: > On 08/17/2011 08:39 AM, Andrew MacLeod wrote: >> ! return __sync_mem_load (const_cast<__int_type *>(&_M_i), __m); > This suggests the builtin is incorrectly defined. > It ought to be const itself. > Err, right. This patch declares the function properly and the casts are no longer needed. Andrew