[PATCH] D23765: Fix for clang PR 29087
Taewook Oh via cfe-commits
cfe-commits at lists.llvm.org
Mon Aug 22 02:02:58 PDT 2016
twoh created this revision.
twoh added a reviewer: rsmith.
twoh added a subscriber: cfe-commits.
Since rL274049, for an inheriting constructor declaration, the name of the using declaration (and using shadow declaration comes from the using declaration) is the name of a derived class, not the base class (line 8225-8232 of lib/Sema/SemaDeclCXX.cpp in https://reviews.llvm.org/rL274049). Because of this, name-based lookup performed inside Sema::LookupConstructors returns not only CXXConstructorDecls but also Using(Shadow)Decls, which results assertion failure reported in PR 29087.
https://reviews.llvm.org/D23765
Files:
include/clang/AST/DeclCXX.h
lib/Sema/SemaExprCXX.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D23765.68832.patch
Type: text/x-patch
Size: 52262 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160822/4ddd0406/attachment-0001.bin>
More information about the cfe-commits
mailing list