keywords: Clang Compilation Error

Example Code(from openssl):

static ossl_inline void constant_time_cond_swap_32(uint32_t mask, uint32_t *a,
                                                   uint32_t *b)
{
    uint32_t xor = *a ^ *b;

    xor &= mask;
    *a ^= xor;
    *b ^= xor;
}

Compilation Error:

include\internal/constant_time_locl.h:274:18: error: expected unqualified-id
uint32_t xor = *a ^ *b;

Cause by:

xor is a keyword of Clang.


记忆有三种面孔,你的一面,我的一面,和最真实的一面。——罗伯特·埃文斯(Robert Evans)《光影留情》