Index: source/Plugins/ExpressionParser/Clang/ClangExpressionDeclMap.cpp =================================================================== --- source/Plugins/ExpressionParser/Clang/ClangExpressionDeclMap.cpp +++ source/Plugins/ExpressionParser/Clang/ClangExpressionDeclMap.cpp @@ -866,8 +866,11 @@ current_id); } - if (!context.m_found.variable) - ClangASTSource::FindExternalVisibleDecls(context); + // Always call into ClangASTSource::FindExternalVisibleDecls, even if we already found + // some decls above. It might be that Clang is looking for a type, but we have found + // a variable of the same name instead. Let ClangASTSource add the type to the result + // list as well; Clang will filter out the decl it is actually interested in. + ClangASTSource::FindExternalVisibleDecls(context); } void