Cast from null pointer constant to nullptr is failing. · Issue #133644 · llvm/llvm-project (original) (raw)

int main(void) { typeof(nullptr) a; a = (typeof(nullptr)) 0;
}

Standard:
"If the target type is nullptr_t, the cast expression shall be a null pointer constant or have type nullptr_t."