The following code is currently accepted without a diagnostic when it should be prohibited:
void f(const int *ptr) { __sync_fetch_and_add(ptr, 1); }
NB: the above code is diagnosed by GCC and ICC. However, Clang attempts to modify the underlying object, which seems dangerous.