[PATCH] D135287: Disallow dereferencing of void* in C++.

Erich Keane via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Oct 5 10:22:01 PDT 2022


erichkeane created this revision.
erichkeane added a reviewer: clang-language-wg.
Herald added a project: All.
erichkeane requested review of this revision.

as Discussed:
https://discourse.llvm.org/t/rfc-can-we-stop-the-extension-to-allow-dereferencing-void-in-c/65708

There is no good reason to allow this when the other compilers all
reject this, and it messes with SFINAE/constraint checking.


https://reviews.llvm.org/D135287

Files:
  clang/docs/ReleaseNotes.rst
  clang/include/clang/Basic/DiagnosticSemaKinds.td
  clang/lib/Sema/SemaExpr.cpp
  clang/test/CXX/temp/temp.decls/temp.class/temp.mem.func/p1inst.cpp
  clang/test/SemaCXX/disallow_void_deref.cpp
  clang/test/SemaCXX/reinterpret-cast.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D135287.465451.patch
Type: text/x-patch
Size: 5284 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20221005/ad775daf/attachment.bin>


More information about the cfe-commits mailing list