|
@@ -9997,7 +9997,8 @@ static CXXBaseSpecifier *findDirectBaseWithType(CXXRecordDecl *Derived,
|
|
QualType DesiredBase,
|
|
QualType DesiredBase,
|
|
bool &AnyDependentBases) {
|
|
bool &AnyDependentBases) {
|
|
// Check whether the named type is a direct base class.
|
|
// Check whether the named type is a direct base class.
|
|
- CanQualType CanonicalDesiredBase = DesiredBase->getCanonicalTypeUnqualified();
|
|
|
|
|
|
+ CanQualType CanonicalDesiredBase = DesiredBase->getCanonicalTypeUnqualified()
|
|
|
|
+ .getUnqualifiedType();
|
|
for (auto &Base : Derived->bases()) {
|
|
for (auto &Base : Derived->bases()) {
|
|
CanQualType BaseType = Base.getType()->getCanonicalTypeUnqualified();
|
|
CanQualType BaseType = Base.getType()->getCanonicalTypeUnqualified();
|
|
if (CanonicalDesiredBase == BaseType)
|
|
if (CanonicalDesiredBase == BaseType)
|