Differential Revision: https://reviews.llvm.org/D47419
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@369196
91177308-0d34-0410-b5e6-
96231b3b80d8
QualType DesiredBase,
bool &AnyDependentBases) {
// Check whether the named type is a direct base class.
- CanQualType CanonicalDesiredBase = DesiredBase->getCanonicalTypeUnqualified();
+ CanQualType CanonicalDesiredBase = DesiredBase->getCanonicalTypeUnqualified()
+ .getUnqualifiedType();
for (auto &Base : Derived->bases()) {
CanQualType BaseType = Base.getType()->getCanonicalTypeUnqualified();
if (CanonicalDesiredBase == BaseType)
G(int &) : G(0) {}
};
G<B1> g(123);
+G<const B1> g2(123);