aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Basic/SourceManager.cpp
diff options
context:
space:
mode:
authorErich Keane <erich.keane@intel.com>2023-05-18 08:26:25 -0700
committerErich Keane <erich.keane@intel.com>2023-05-24 11:27:13 -0700
commitfca4e2add0f8b0471e4dbae5cf647006ec360bb2 (patch)
tree67e5fca90bc3a4e637ff0912229332e20039c7b3 /clang/lib/Basic/SourceManager.cpp
parent2daf91dae3bc25d2ffb869d9781d9f4496a27d02 (diff)
downloadllvm-fca4e2add0f8b0471e4dbae5cf647006ec360bb2.zip
llvm-fca4e2add0f8b0471e4dbae5cf647006ec360bb2.tar.gz
llvm-fca4e2add0f8b0471e4dbae5cf647006ec360bb2.tar.bz2
Make dereferencing a void* a hard-error instead of warn-as-error
Clang 16 changed to consider dereferencing a void* to be a warning-as-error, plus made this an error in SFINAE contexts, since this resulted in incorrect template instantiation. When doing so, the Clang 16 documentation was updated to reflect that this was likely to change again to a non-disablable error in the next version. As there has been no response to changing from a warning to an error, I believe this is a non-controversial change. This patch changes this to be an Error, consistent with the standard and other compilers. This was discussed in this RFC: https://discourse.llvm.org/t/rfc-can-we-stop-the-extension-to-allow-dereferencing-void-in-c/65708 Differential Revision: https://reviews.llvm.org/D150875
Diffstat (limited to 'clang/lib/Basic/SourceManager.cpp')
0 files changed, 0 insertions, 0 deletions