[PATCH] D142437: [clang] Add the check of membership in decltype for the issue #58674
Liming Liu via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Jan 24 01:03:58 PST 2023
lime created this revision.
lime added reviewers: aaron.ballman, erichkeane, cor3ntin, clang-language-wg.
lime added a project: clang.
Herald added a subscriber: yaxunl.
Herald added a project: All.
lime requested review of this revision.
Herald added a subscriber: cfe-commits.
D137531 <https://reviews.llvm.org/D137531> had once fixed the issue. However, it caused a crash during compiling
llvm/unittests/IR/PatternMatch.cpp in stage-2. The reason is the predicator
`isDerivedFrom` does not consider independent types if the derived type is
dependent.
This patch improves D137531 <https://reviews.llvm.org/D137531> by adding an option to make `isDerivedFrom` consider
independent types.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D142437
Files:
clang/docs/ReleaseNotes.rst
clang/include/clang/AST/DeclCXX.h
clang/lib/AST/CXXInheritance.cpp
clang/lib/Sema/SemaExpr.cpp
clang/test/SemaCXX/decltype.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D142437.491646.patch
Type: text/x-patch
Size: 6575 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230124/c8ac7c94/attachment-0001.bin>
More information about the cfe-commits
mailing list