[clang] [clang-tools-extra] Reapply "[Clang][Sema] Diagnose class member access expressions naming non-existent members of the current instantiation prior to instantiation in the absence of dependent base classes (#84050)" (PR #90152)

via cfe-commits cfe-commits at lists.llvm.org
Thu May 9 13:19:42 PDT 2024


dyung wrote:

Hi @sdkrystian, we were fixing up some internal codebases which this change exposed problems with but noticed that this slightly tweaked example of one doesn't seem to trigger an error even though it seems like it should with your change:
```c++
enum BK {};
template <class > class COneSet {
  typedef COneSet self;
  void Swap();
  BK m_bk;
};
template <class T> void COneSet<T>::Swap() {
  self pSetOther;
  SWAP(pSetOther); // Still calls the undeclared function SWAP
}
```

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


More information about the cfe-commits mailing list