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

Erich Keane via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri May 19 05:50:19 PDT 2023


erichkeane 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.
 
----------------
MaskRay wrote:
> 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)?
Good suggestions!  

Yes, Clang keeps `Wvoid-ptr-dereference` because it is still a valid flag for C.


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

https://reviews.llvm.org/D150875



More information about the cfe-commits mailing list