https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85419
Martin Sebor <msebor at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED CC| |msebor at gcc dot gnu.org Resolution|--- |INVALID --- Comment #1 from Martin Sebor <msebor at gcc dot gnu.org> --- Because they don't produce lvalues top-level qualifiers in casts are meaningless. As a result (void* restrict)0 is the same as (void*)0 and the result is a null pointer constant.