[PATCH] D64034: [c++] Implement categorizing pointer-to-bool as narrowing conversions
Zhihao Yuan via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Jul 1 14:04:49 PDT 2019
lichray created this revision.
lichray added reviewers: rsmith, EricWF.
lichray added a project: clang.
Herald added a subscriber: cfe-commits.
This change implements an upcoming Core issue to categorize boolean conversions from pointer and pointer-to-member as (always) narrowing conversion (you can tell the wording from this diff). MSVC does it slightly differently, for example, array-to-pointer conversion isn't applied before the test -- suspected a bug.
Repository:
rC Clang
https://reviews.llvm.org/D64034
Files:
lib/Sema/SemaInit.cpp
lib/Sema/SemaOverload.cpp
test/CXX/dcl.decl/dcl.init/dcl.init.list/p7-0x.cpp
test/CXX/dcl.decl/dcl.init/dcl.init.list/p7-cxx11-nowarn.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D64034.207402.patch
Type: text/x-patch
Size: 6874 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20190701/85648694/attachment.bin>
More information about the cfe-commits
mailing list