[clang] [Clang] Fix name lookup for dependent bases (PR #114978)

Vladislav Belov via cfe-commits cfe-commits at lists.llvm.org
Wed Nov 27 15:13:55 PST 2024


vbe-sc wrote:

```c++
void CXXMethodDecl::addOverriddenMethod(const CXXMethodDecl *MD) {
  assert(MD->isCanonicalDecl() && "Method is not canonical!");
  assert(!MD->getParent()->isDependentContext() &&
         "Can't add an overridden method to a class template!");
```

It seems to me that the second assertion is not really a requirement. @mizvekov , can you please comment on this statement?

https://github.com/llvm/llvm-project/pull/114978


More information about the cfe-commits mailing list