File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -126,7 +126,11 @@ getIteratorCategoryDecl(const clang::CXXRecordDecl *clangDecl) {
126
126
clang::IdentifierInfo *iteratorCategoryDeclName =
127
127
&clangDecl->getASTContext ().Idents .get (" iterator_category" );
128
128
auto iteratorCategories = clangDecl->lookup (iteratorCategoryDeclName);
129
- if (!iteratorCategories.isSingleResult ())
129
+ // If this is a templated typedef, Clang might have instantiated several
130
+ // equivalent typedef decls. If they aren't equivalent, Clang has already
131
+ // complained about this. Let's assume that they are equivalent. (see
132
+ // filterNonConflictingPreviousTypedefDecls in clang/Sema/SemaDecl.cpp)
133
+ if (iteratorCategories.empty ())
130
134
return nullptr ;
131
135
auto iteratorCategory = iteratorCategories.front ();
132
136
You can’t perform that action at this time.
0 commit comments