We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3bf8e67 commit 5ecde7bCopy full SHA for 5ecde7b
clang/lib/Sema/HeuristicResolver.cpp
@@ -242,6 +242,8 @@ std::vector<const NamedDecl *> HeuristicResolverImpl::resolveMemberExpr(
242
BaseType = resolveExprToType(Base);
243
}
244
245
+ if (BaseType.isNull())
246
+ return {};
247
if (const auto *AT = BaseType->getContainedAutoType()) {
248
// If BaseType contains a dependent `auto` type, deduction will not have
249
// been performed on it yet. In simple cases (e.g. `auto` variable with
0 commit comments