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 a17b977 commit 37dc366Copy full SHA for 37dc366
clang/lib/Sema/SemaOverload.cpp
@@ -6941,7 +6941,7 @@ void Sema::AddOverloadCandidate(
6941
/// Inline functions with internal linkage are a common pattern in headers
6942
/// to avoid ODR issues.
6943
const bool IsInlineFunctionInGMF =
6944
- Function->isFromGlobalModule()
+ Function->isFromGlobalModule() &&
6945
(IsImplicitlyInstantiated || Function->isInlined());
6946
6947
if (ND->getFormalLinkage() == Linkage::Internal && !IsInlineFunctionInGMF) {
0 commit comments