[clang] [Sema] Reject unqualified lookup of local nested class name (PR #192678)

via cfe-commits cfe-commits at lists.llvm.org
Sun Apr 19 03:50:45 PDT 2026


================

----------------
arrowten wrote:

@zwuis This change fixes the lookup behaviour for local classes inside function scope too. So the code
```
void f() {
  struct A { struct B; };
  struct A::B {};
  B b;
}
```
is getting rejected. 

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


More information about the cfe-commits mailing list