[clang] [clang] member pointer class qualification fix (PR #142081)
Younan Zhang via cfe-commits
cfe-commits at lists.llvm.org
Thu May 29 20:51:20 PDT 2025
================
@@ -2127,7 +2127,7 @@ static TemplateDeductionResult DeduceTemplateArgumentsByTypeMatch(
TA = S.Context.getTypeDeclType(MPA->getMostRecentCXXRecordDecl());
} else {
NestedNameSpecifier *QA = MPA->getQualifier();
- TA = QualType(QA->translateToType(S.Context), 0);
+ TA = QualType(QA->translateToType(S.Context), 0).getUnqualifiedType();
----------------
zyn0217 wrote:
Curious: Would we lose sugar within getUnqualifiedType?
https://github.com/llvm/llvm-project/pull/142081
More information about the cfe-commits
mailing list