[PATCH] D150875: Make dereferencing a void* a hard-error instead of warn-as-error

Fangrui Song via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu May 18 15:28:44 PDT 2023


MaskRay added inline comments.


================
Comment at: clang/docs/ReleaseNotes.rst:59
+- Clang no longer allows dereferencing of a ``void*`` as an extension. Clang 16
+  converted this to a warning-as-default-error as well as a SFINAE error.
 
----------------
Mention `-Wvoid-ptr-dereference`?

Clang 16 converted this to a default-error `-Wvoid-ptr-dereference` as well as a SFINAE error.

Does this patch intentionally keep `-Wvoid-ptr-dereference` (which is a no-op now)?


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D150875/new/

https://reviews.llvm.org/D150875



More information about the cfe-commits mailing list